summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPeter Korsgaard <jacmet@sunsite.dk>2012-06-29 16:13:57 +0200
committerPeter Korsgaard <jacmet@sunsite.dk>2012-06-29 16:40:04 +0200
commiteb421a8433a44504c79e06ccdd5a69a9792ee77f (patch)
tree53723afd78926cb57f067337120e484b4ea7008b
parent311a58303f06bdb89aa8e2af3945b552235e319a (diff)
downloadbuildroot-novena-eb421a8433a44504c79e06ccdd5a69a9792ee77f.tar.gz
buildroot-novena-eb421a8433a44504c79e06ccdd5a69a9792ee77f.zip
package/Makefile.in: link statically when BR2_PREFER_STATIC_LIB
Instead of explicitly adding it for each package. Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
-rw-r--r--package/Makefile.in1
1 files changed, 1 insertions, 0 deletions
diff --git a/package/Makefile.in b/package/Makefile.in
index 1d43aef5c..c5ad00aee 100644
--- a/package/Makefile.in
+++ b/package/Makefile.in
@@ -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