summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWaldemar Brodkorb <wbx@openadk.org>2013-09-13 11:23:34 +0200
committerWaldemar Brodkorb <wbx@openadk.org>2013-09-13 11:23:34 +0200
commitce57b051ea75be9e680edc7283c0485ebbb05d83 (patch)
treec0d95e48b15b1819ef30bc5fc74837e9a21d2043
parentd9d33602c0a2d0df4d0f4bef21da7522a720d3d6 (diff)
rebuild musl after full gcc is available
-rw-r--r--toolchain/musl/Makefile10
1 files changed, 6 insertions, 4 deletions
diff --git a/toolchain/musl/Makefile b/toolchain/musl/Makefile
index b3e02b841..e75b8c607 100644
--- a/toolchain/musl/Makefile
+++ b/toolchain/musl/Makefile
@@ -17,16 +17,18 @@ $(WRKBUILD)/.headers:
touch $@
$(WRKBUILD)/.compiled:
- # reconfigure musl, otherwise linking with libgcc is disabled
+ $(MAKE) CFLAGS='$(TARGET_CFLAGS)' -C $(WRKBUILD) all
+ touch $@
+
+$(WRKBUILD)/.installed: $(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 $@
-
-$(WRKBUILD)/.installed: $(WRKBUILD)/.compiled
$(MAKE) -C $(WRKBUILD) DESTDIR=$(STAGING_TARGET_DIR) install
touch $@