summaryrefslogtreecommitdiff
path: root/toolchain/musl/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'toolchain/musl/Makefile')
-rw-r--r--toolchain/musl/Makefile7
1 files changed, 7 insertions, 0 deletions
diff --git a/toolchain/musl/Makefile b/toolchain/musl/Makefile
index f9f8b61df..44ee75775 100644
--- a/toolchain/musl/Makefile
+++ b/toolchain/musl/Makefile
@@ -30,6 +30,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 $@