[Buildroot] [PATCH] BR2_PREFER_STATIC_LIB and LDFLAGS+= -static
ANDY KENNEDY
ANDY.KENNEDY at adtran.com
Mon Nov 5 16:55:26 UTC 2012
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 <andy.kennedy at adtran.com>
---
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
More information about the buildroot
mailing list