aboutsummaryrefslogtreecommitdiffstats
path: root/toolchain/musl/Makefile
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2014-02-24 21:10:11 +0000
committerFelix Fietkau <nbd@openwrt.org>2014-02-24 21:10:11 +0000
commitde750029f42feb180f12671fa9a8e17a49432fe2 (patch)
treeceb25e515780e2c075ff15fddad9aeeafc12c1e1 /toolchain/musl/Makefile
parent06a3d35eda134aa178747be2a3b92e35625863ec (diff)
downloadupstream-de750029f42feb180f12671fa9a8e17a49432fe2.tar.gz
upstream-de750029f42feb180f12671fa9a8e17a49432fe2.tar.bz2
upstream-de750029f42feb180f12671fa9a8e17a49432fe2.zip
toolchain/musl: add version 0.9.15, remove older versions (still broken, but closer to being functional than before)
Signed-off-by: Felix Fietkau <nbd@openwrt.org> SVN-Revision: 39750
Diffstat (limited to 'toolchain/musl/Makefile')
-rw-r--r--toolchain/musl/Makefile8
1 files changed, 6 insertions, 2 deletions
diff --git a/toolchain/musl/Makefile b/toolchain/musl/Makefile
index f95bb05ce2..66b874eb2e 100644
--- a/toolchain/musl/Makefile
+++ b/toolchain/musl/Makefile
@@ -7,6 +7,10 @@ HOST_STAMP_INSTALLED:=$(TOOLCHAIN_DIR)/stamp/.musl_installed
HOST_BUILD_PARALLEL:=1
+MUSL_MAKEOPTS = -C $(HOST_BUILD_DIR) \
+ DESTDIR="$(TOOLCHAIN_DIR)/" \
+ LIBCC="$(subst libgcc.a,libgcc_initial.a,$(shell $(TARGET_CC) -print-libgcc-file-name))"
+
define Host/SetToolchainInfo
$(SED) 's,^\(LIBC_TYPE\)=.*,\1=$(PKG_NAME),' $(TOOLCHAIN_DIR)/info.mk
$(SED) 's,^\(LIBC_URL\)=.*,\1=http://www.musl-libc.org/,' $(TOOLCHAIN_DIR)/info.mk
@@ -15,12 +19,12 @@ define Host/SetToolchainInfo
endef
define Host/Compile
- $(MAKE) $(HOST_JOBS) -C $(HOST_BUILD_DIR) all
+ $(MAKE) $(HOST_JOBS) $(MUSL_MAKEOPTS) all
endef
define Host/Install
$(call Host/SetToolchainInfo)
- $(MAKE) -C $(HOST_BUILD_DIR) DESTDIR="$(TOOLCHAIN_DIR)/" install
+ $(MAKE) $(MUSL_MAKEOPTS) DESTDIR="$(TOOLCHAIN_DIR)/" install
endef
$(eval $(call HostBuild))