summaryrefslogtreecommitdiff
path: root/toolchain/musl/Makefile
diff options
context:
space:
mode:
authorWaldemar Brodkorb <mail@waldemar-brodkorb.de>2013-09-13 09:31:00 +0200
committerWaldemar Brodkorb <mail@waldemar-brodkorb.de>2013-09-13 09:31:00 +0200
commitb51f7f73b94422c8cb2411797b009c85db15f89b (patch)
treec128edd2155c7ddff5e48f01b9a870f10000db54 /toolchain/musl/Makefile
parent194b03d5d9dbddc8c00e4da8fcbb0409fcf50d39 (diff)
fix half way libgcc headache
Diffstat (limited to 'toolchain/musl/Makefile')
-rw-r--r--toolchain/musl/Makefile6
1 files changed, 6 insertions, 0 deletions
diff --git a/toolchain/musl/Makefile b/toolchain/musl/Makefile
index 91a6add88..b3e02b841 100644
--- a/toolchain/musl/Makefile
+++ b/toolchain/musl/Makefile
@@ -17,6 +17,12 @@ $(WRKBUILD)/.headers:
touch $@
$(WRKBUILD)/.compiled:
+ # reconfigure musl, otherwise linking with libgcc is disabled
+ (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 $@