Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] [PATCH] BR2_PREFER_STATIC_LIB and LDFLAGS+= -static
@ 2012-11-05 16:55 ANDY KENNEDY
  2012-11-05 23:35 ` Arnout Vandecappelle
  2013-01-14 18:51 ` [Buildroot] [PATCH][poke] " ANDY KENNEDY
  0 siblings, 2 replies; 8+ messages in thread
From: ANDY KENNEDY @ 2012-11-05 16:55 UTC (permalink / raw)
  To: buildroot

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@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
 

^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2013-01-14 19:39 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-11-05 16:55 [Buildroot] [PATCH] BR2_PREFER_STATIC_LIB and LDFLAGS+= -static ANDY KENNEDY
2012-11-05 23:35 ` Arnout Vandecappelle
2012-11-06  7:14   ` Thomas Petazzoni
2012-11-06 15:06   ` ANDY KENNEDY
2012-11-06 22:32     ` Arnout Vandecappelle
2013-01-14 18:51 ` [Buildroot] [PATCH][poke] " ANDY KENNEDY
2013-01-14 19:36   ` Peter Korsgaard
2013-01-14 19:39     ` ANDY KENNEDY

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox