summaryrefslogtreecommitdiff
path: root/toolchain
diff options
context:
space:
mode:
authorWaldemar Brodkorb <wbx@openadk.org>2014-01-04 22:33:48 +0100
committerWaldemar Brodkorb <wbx@openadk.org>2014-01-04 22:33:48 +0100
commit2cf07c6133be930549293697255d7005cbbaf242 (patch)
tree694fa46d0aad1d284373f81de79337f3e8ef9a6b /toolchain
parent4bbe6b30b24c99257a43523fbe4e3be935793fa5 (diff)
parent78646a0eb8f5f9d41d6bcfd261b4717e1648ab5f (diff)
Merge branch 'master' of git+ssh://openadk.org/git/openadk
Diffstat (limited to 'toolchain')
-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 $@