package/Makefile.in: link statically when BR2_PREFER_STATIC_LIB
authorPeter Korsgaard <jacmet@sunsite.dk>
Fri, 29 Jun 2012 14:13:57 +0000 (16:13 +0200)
committerPeter Korsgaard <jacmet@sunsite.dk>
Fri, 29 Jun 2012 14:40:04 +0000 (16:40 +0200)
Instead of explicitly adding it for each package.

Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
package/Makefile.in

index 1d43aef5c2e06fe1dc9088f0b17459f15a191079..c5ad00aeec5b31ed40543baa3f3464c257f3cd6c 100644 (file)
@@ -305,6 +305,7 @@ endif
 
 ifeq ($(BR2_PREFER_STATIC_LIB),y)
 SHARED_STATIC_LIBS_OPTS=--enable-static --disable-shared
+TARGET_LDFLAGS += -static
 else
 SHARED_STATIC_LIBS_OPTS=--enable-static --enable-shared
 endif