mirror of
https://github.com/openwrt/openwrt.git
synced 2025-02-01 08:48:08 +00:00
4d384d28e4
This reverts r15599 [0]. This was added to fix an uclibc rebuild issue, but since uclibc isn't supported anymore [Fixes:] this can be removed. [0] https://git.openwrt.org/?p=openwrt/svn-archive/archive.git;a=commitdiff;h=016a052efeee6bc2da3f501a8c66b5aea20350b4 Fixes: 63fb1752 "toolchain: remove uClibc-ng" Signed-off-by: Andre Heider <a.heider@gmail.com>
31 lines
636 B
Makefile
31 lines
636 B
Makefile
GCC_VARIANT:=initial
|
|
GCC_PREPARE=$(CONFIG_USE_MUSL)
|
|
|
|
include ../common.mk
|
|
|
|
GCC_CONFIGURE += \
|
|
--with-newlib \
|
|
--with-sysroot=$(TOOLCHAIN_DIR) \
|
|
--enable-languages=c \
|
|
--disable-shared \
|
|
--disable-threads \
|
|
|
|
define Host/Compile
|
|
+$(GCC_MAKE) $(HOST_JOBS) -C $(GCC_BUILD_DIR) \
|
|
all-build-libiberty \
|
|
all-gcc \
|
|
all-target-libgcc
|
|
endef
|
|
|
|
define Host/Install
|
|
+$(GCC_MAKE) $(HOST_JOBS) -C $(GCC_BUILD_DIR) \
|
|
prefix="$(TOOLCHAIN_DIR)/initial" \
|
|
install-gcc \
|
|
install-target-libgcc
|
|
|
|
$(call FixupLibdir,$(TOOLCHAIN_DIR)/initial)
|
|
$$(call file_copy,$(TOOLCHAIN_DIR)/initial/.,$(TOOLCHAIN_DIR)/)
|
|
endef
|
|
|
|
$(eval $(call HostBuild))
|