summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPeter Korsgaard <jacmet@sunsite.dk>2012-06-29 14:13:57 (GMT)
committer Peter Korsgaard <jacmet@sunsite.dk>2012-06-29 14:40:04 (GMT)
commiteb421a8433a44504c79e06ccdd5a69a9792ee77f (patch)
tree53723afd78926cb57f067337120e484b4ea7008b
parent311a58303f06bdb89aa8e2af3945b552235e319a (diff)
downloadbuildroot-eb421a8433a44504c79e06ccdd5a69a9792ee77f.tar.gz
buildroot-eb421a8433a44504c79e06ccdd5a69a9792ee77f.tar.bz2
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 1d43aef..c5ad00a 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