From patchwork Mon Nov 5 16:55:26 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: BR2_PREFER_STATIC_LIB and LDFLAGS+= -static Date: Mon, 05 Nov 2012 06:55:26 -0000 From: ANDY KENNEDY X-Patchwork-Id: 197224 Message-Id: To: "'buildroot@busybox.net'" The following changes LDFLAGS from += -static to += --static if building with BR2_PREFER_STATIC_LIB so that various components actually build statically. Signed-off-by: Andy Kennedy Acked-by: Arnout Vandecappelle (Essensium/Mind) --- diff -Naur a/package/Makefile.in b/package/Makefile.in --- a/package/Makefile.in 2012-08-31 03:49:41.000000000 -0500 +++ b/package/Makefile.in 2012-11-05 10:45:45.000000000 -0600 @@ -299,7 +299,7 @@ ifeq ($(BR2_PREFER_STATIC_LIB),y) SHARED_STATIC_LIBS_OPTS=--enable-static --disable-shared -TARGET_LDFLAGS += -static +TARGET_LDFLAGS += --static else SHARED_STATIC_LIBS_OPTS=--enable-static --enable-shared endif