summaryrefslogtreecommitdiff
path: root/toolchain/musl/Makefile
diff options
context:
space:
mode:
authorWaldemar Brodkorb <wbx@openadk.org>2016-05-12 21:55:06 +0200
committerWaldemar Brodkorb <wbx@openadk.org>2016-05-12 21:55:06 +0200
commit84bce194674cc57e556ec52826a6014518eb4dd1 (patch)
treee69db53d08c10adb244576950bdec51c6ab5f153 /toolchain/musl/Makefile
parentd9b890f651d639cae06fa2c475a49722c3ea356f (diff)
add support to play with LLVM/clang
Diffstat (limited to 'toolchain/musl/Makefile')
-rw-r--r--toolchain/musl/Makefile13
1 files changed, 7 insertions, 6 deletions
diff --git a/toolchain/musl/Makefile b/toolchain/musl/Makefile
index 1bbb2d190..c2ad85706 100644
--- a/toolchain/musl/Makefile
+++ b/toolchain/musl/Makefile
@@ -22,7 +22,9 @@ TARGET_LDFLAGS:= $(filter-out -fstack-protector-all,$(TARGET_LDFLAGS))
TARGET_CFLAGS:= $(filter-out -ffast-math,$(TARGET_CFLAGS))
$(WRKBUILD)/.configured:
- (cd $(WRKBUILD); CC='$(TARGET_CC)' CROSS_COMPILE='$(TARGET_CROSS)' \
+ (cd $(WRKBUILD); PATH='$(HOST_PATH)' \
+ CROSS_COMPILE='$(TARGET_CROSS)' \
+ CC='$(TARGET_CC)' \
CFLAGS='$(TARGET_CFLAGS)' \
./configure --prefix=/usr \
--target=$(GNU_TARGET_NAME) \
@@ -31,14 +33,13 @@ $(WRKBUILD)/.configured:
touch $@
$(WRKBUILD)/.compiled:
- $(MAKE) -C $(WRKBUILD) CFLAGS='$(TARGET_CFLAGS)' all
+ PATH='$(HOST_PATH)' $(MAKE) -C $(WRKBUILD) \
+ CC='$(TARGET_CC)' CFLAGS='$(TARGET_CFLAGS)' all
touch $@
$(WRKBUILD)/.installed: $(WRKBUILD)/.compiled
- $(MAKE) -C $(WRKBUILD) CFLAGS='$(TARGET_CFLAGS)' DESTDIR=$(STAGING_TARGET_DIR) install
- touch $@
-
-$(WRKBUILD)/.final:
+ PATH='$(HOST_PATH)' $(MAKE) -C $(WRKBUILD) \
+ CC='$(TARGET_CC)' CFLAGS='$(TARGET_CFLAGS)' DESTDIR=$(STAGING_TARGET_DIR) install
touch $@
include ${ADK_TOPDIR}/mk/toolchain.mk