2010-07-20 20:57:21 +00:00
|
|
|
GCC_VARIANT:=minimal
|
2016-07-07 12:12:30 +00:00
|
|
|
GCC_PREPARE=$(if $(CONFIG_USE_MUSL),,1)
|
2010-07-20 20:57:21 +00:00
|
|
|
|
|
|
|
include ../common.mk
|
|
|
|
|
|
|
|
GCC_CONFIGURE += \
|
|
|
|
--with-newlib \
|
|
|
|
--without-headers \
|
|
|
|
--enable-languages=c \
|
2014-10-05 14:59:45 +00:00
|
|
|
--disable-libsanitizer \
|
2010-07-20 20:57:21 +00:00
|
|
|
--disable-libssp \
|
|
|
|
--disable-shared \
|
|
|
|
--disable-threads
|
|
|
|
|
|
|
|
define Host/Compile
|
2012-09-23 09:50:01 +00:00
|
|
|
+$(GCC_MAKE) $(HOST_JOBS) -C $(GCC_BUILD_DIR) all-gcc all-target-libgcc
|
2010-07-20 20:57:21 +00:00
|
|
|
endef
|
|
|
|
|
|
|
|
define Host/Install
|
2012-06-07 12:24:13 +00:00
|
|
|
$(GCC_MAKE) -C $(GCC_BUILD_DIR) install-gcc install-target-libgcc
|
2010-07-20 20:57:21 +00:00
|
|
|
endef
|
|
|
|
|
|
|
|
define Host/Clean
|
|
|
|
rm -rf \
|
|
|
|
$(HOST_BUILD_DIR) \
|
|
|
|
$(GCC_BUILD_DIR)
|
|
|
|
endef
|
|
|
|
|
|
|
|
$(eval $(call HostBuild))
|