All of lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] [PATCH] libnss: workaround for microblaze ld bug
@ 2017-02-18 21:40 Waldemar Brodkorb
  2017-02-19 21:15 ` Peter Korsgaard
  0 siblings, 1 reply; 2+ messages in thread
From: Waldemar Brodkorb @ 2017-02-18 21:40 UTC (permalink / raw)
  To: buildroot

Add a workaround for a microblaze specific ld bug to avoid
segfault.

Fixes:
  http://autobuild.buildroot.net/results/638a65453879777a0d5bdb29231034cd261b41c0

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

diff --git a/package/libnss/libnss.mk b/package/libnss/libnss.mk
index 4a40b0a..5683ffc 100644
--- a/package/libnss/libnss.mk
+++ b/package/libnss/libnss.mk
@@ -13,6 +13,16 @@ LIBNSS_DEPENDENCIES = libnspr sqlite zlib
 LIBNSS_LICENSE = MPLv2.0
 LIBNSS_LICENSE_FILES = nss/COPYING
 
+# --gc-sections triggers binutils ld segfault
+# https://sourceware.org/bugzilla/show_bug.cgi?id=21180
+ifeq ($(BR2_microblaze),y)
+define LIBNSS_PRECONFIGURE
+	sed -i 's:-Wl,--gc-sections::g' $(@D)/nss/coreconf/Linux.mk
+endef
+
+LIBNSS_PRE_CONFIGURE_HOOKS += LIBNSS_PRECONFIGURE
+endif
+
 LIBNSS_BUILD_VARS = \
 	MOZILLA_CLIENT=1 \
 	NSPR_INCLUDE_DIR=$(STAGING_DIR)/usr/include/nspr \
-- 
2.1.4

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

end of thread, other threads:[~2017-02-19 21:15 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-02-18 21:40 [Buildroot] [PATCH] libnss: workaround for microblaze ld bug Waldemar Brodkorb
2017-02-19 21:15 ` Peter Korsgaard

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.