From bb9efd268326393ca769c38e6385216569e70e52 Mon Sep 17 00:00:00 2001
From: Waldemar Brodkorb <wbx@openadk.org>
Date: Sat, 4 Jan 2014 22:21:30 +0100
Subject: update firefox and dependencies

---
 toolchain/musl/Makefile | 7 +++++++
 1 file changed, 7 insertions(+)

(limited to 'toolchain/musl')

diff --git a/toolchain/musl/Makefile b/toolchain/musl/Makefile
index f647939b5..25bd9e56c 100644
--- a/toolchain/musl/Makefile
+++ b/toolchain/musl/Makefile
@@ -27,6 +27,13 @@ $(WRKBUILD)/.headers:
 	touch $@
 
 $(WRKBUILD)/.compiled:
+	# reconfigure musl, otherwise linking with libgcc or libgcc_eh is disabled
+	$(MAKE) CFLAGS='$(TARGET_CFLAGS)' -C $(WRKBUILD) clean
+	(cd $(WRKBUILD); CC='$(TARGET_CC)' CROSS_COMPILE='$(TARGET_CROSS)' \
+		./configure --prefix=/usr \
+		--target=$(REAL_GNU_TARGET_NAME) \
+		--disable-gcc-wrapper \
+	)
 	$(MAKE) CFLAGS='$(TARGET_CFLAGS)' -C $(WRKBUILD) all
 	touch $@
 
-- 
cgit v1.2.3