From eb421a8433a44504c79e06ccdd5a69a9792ee77f Mon Sep 17 00:00:00 2001 From: Peter Korsgaard Date: Fri, 29 Jun 2012 16:13:57 +0200 Subject: [PATCH] package/Makefile.in: link statically when BR2_PREFER_STATIC_LIB Instead of explicitly adding it for each package. Signed-off-by: Peter Korsgaard --- package/Makefile.in | 1 + 1 file changed, 1 insertion(+) 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 -- 2.30.2