Aurelien Larcher
2021-08-17 af2a25c891b5fbe39a68ce1d2d0e501a2c8ca6ae
gcc-component: disable bootstrap if same compiler as host
1 files modified
8 ■■■■■ changed files
make-rules/gcc-component.mk 8 ●●●●● patch | view | raw | blame | history
make-rules/gcc-component.mk
@@ -127,6 +127,14 @@
CONFIGURE_OPTIONS+= --with-ld=/usr/bin/ld
CONFIGURE_OPTIONS+= --with-build-time-tools=/usr/gnu/$(GNU_TRIPLET)/bin
# If the compiler used to build matches the compiler being built, there is no
# need for a 3 stage build.
ifneq ($(shell $(CC) --version | grep $(COMPONENT_VERSION)),)
CONFIGURE_OPTIONS +=    --disable-bootstrap
else
COMPONENT_BUILD_TARGETS=bootstrap
endif
# On SPARC systems, use Sun Assembler
CONFIGURE_OPTIONS.sparc+= --without-gnu-as --with-as=/usr/bin/as
CONFIGURE_OPTIONS.i386+= --with-gnu-as --with-as=/usr/bin/gas