toolchain: skip gcc/minimal for musl
[openwrt/openwrt.git] / toolchain / gcc / minimal / Makefile
1 GCC_VARIANT:=minimal
2 GCC_PREPARE=$(if $(CONFIG_USE_MUSL),,1)
3
4 include ../common.mk
5
6 GCC_CONFIGURE += \
7 --with-newlib \
8 --without-headers \
9 --enable-languages=c \
10 --disable-libsanitizer \
11 --disable-libssp \
12 --disable-shared \
13 --disable-threads
14
15 define Host/Compile
16 +$(GCC_MAKE) $(HOST_JOBS) -C $(GCC_BUILD_DIR) all-gcc all-target-libgcc
17 endef
18
19 define Host/Install
20 $(GCC_MAKE) -C $(GCC_BUILD_DIR) install-gcc install-target-libgcc
21 endef
22
23 define Host/Clean
24 rm -rf \
25 $(HOST_BUILD_DIR) \
26 $(GCC_BUILD_DIR)
27 endef
28
29 $(eval $(call HostBuild))