Pass --static rather than -static in LDFLAGS when BR2_PREFER_STATIC_LIB
authorANDY KENNEDY <ANDY.KENNEDY@adtran.com>
Mon, 5 Nov 2012 06:55:26 +0000 (06:55 +0000)
committerPeter Korsgaard <jacmet@sunsite.dk>
Mon, 14 Jan 2013 19:40:26 +0000 (20:40 +0100)
commit0a4bd19f4a136930c611027942ce43124a81c5cb
treead2ebd7206ecdaa4137e06c89bcfedafe648cae4
parente4d89e7f2de5f2586223466a48d8eefba3b0f216
Pass --static rather than -static in LDFLAGS when BR2_PREFER_STATIC_LIB

The following changes LDFLAGS from -static to --static if building
with BR2_PREFER_STATIC_LIB so that various components actually build
statically.

Libtool interpret -static as linking statically with libraries that will not
be installed to the libdir; you have to pass it -all-static to force static
linking.  Or, pass --static, which libtool passes on blindly to gcc.  gcc
and (GNU) ld both interpret --static the same as -static (although this
isn't documented).

Signed-off-by: Andy Kennedy <andy.kennedy@adtran.com>
Acked-by: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be>
Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
package/Makefile.in