diff options
Diffstat (limited to 'toolchain/musl/Makefile')
-rw-r--r-- | toolchain/musl/Makefile | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/toolchain/musl/Makefile b/toolchain/musl/Makefile index f95bb05..66b874e 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)) |