From: Peter Korsgaard Date: Fri, 29 Jun 2012 14:13:57 +0000 (+0200) Subject: package/Makefile.in: link statically when BR2_PREFER_STATIC_LIB X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=eb421a8433a44504c79e06ccdd5a69a9792ee77f;p=buildroot.git package/Makefile.in: link statically when BR2_PREFER_STATIC_LIB Instead of explicitly adding it for each package. Signed-off-by: Peter Korsgaard --- diff --git a/package/Makefile.in b/package/Makefile.in index 1d43aef5c2..c5ad00aeec 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