Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] [PATCH] berkeleydb: fix static linking issues
@ 2016-12-04 17:39 Waldemar Brodkorb
  2016-12-04 20:56 ` Thomas Petazzoni
  0 siblings, 1 reply; 5+ messages in thread
From: Waldemar Brodkorb @ 2016-12-04 17:39 UTC (permalink / raw)
  To: buildroot

Libtool by default drops -static, so force libtool with -all-static
to do static linking.

Fixes:
 http://autobuild.buildroot.net/results/f0a96f671644d9f9efcf245b354affdc84f7d7da

Signed-off-by: Waldemar Brodkorb <wbx@openadk.org>
---
 package/berkeleydb/berkeleydb.mk | 8 ++++++++
 1 file changed, 8 insertions(+)

diff --git a/package/berkeleydb/berkeleydb.mk b/package/berkeleydb/berkeleydb.mk
index e5c11bd..d09bece 100644
--- a/package/berkeleydb/berkeleydb.mk
+++ b/package/berkeleydb/berkeleydb.mk
@@ -44,6 +44,10 @@ define BERKELEYDB_CONFIGURE_CMDS
 	)
 endef
 
+ifeq ($(BR2_STATIC_LIBS),y)
+BERKELEYDB_CONF_ENV += LDFLAGS="$(TARGET_LDFLAGS) -all-static"
+endif
+
 ifneq ($(BR2_PACKAGE_BERKELEYDB_TOOLS),y)
 
 define BERKELEYDB_REMOVE_TOOLS
@@ -60,4 +64,8 @@ endef
 
 BERKELEYDB_POST_INSTALL_TARGET_HOOKS += BERKELEYDB_REMOVE_DOCS
 
+define BERKELEYDB_BUILD_CMDS
+	$(TARGET_MAKE_ENV) $(TARGET_CONFIGURE_ARGS) $(MAKE) $(BERKELEYDB_CONF_ENV) -C $(@D)/build_unix
+endef
+
 $(eval $(autotools-package))
-- 
2.1.4

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

end of thread, other threads:[~2016-12-05 21:21 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-12-04 17:39 [Buildroot] [PATCH] berkeleydb: fix static linking issues Waldemar Brodkorb
2016-12-04 20:56 ` Thomas Petazzoni
2016-12-05  3:46   ` Waldemar Brodkorb
2016-12-05 18:22     ` Arnout Vandecappelle
2016-12-05 21:21       ` Thomas Petazzoni

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