Marcel Telka
2023-03-09 72d1eeb27b0d89bcbda8ee6316849048c5b27224
gcc-component.mk: fix bootstrap detection

1 files modified
7 ■■■■ changed files
make-rules/gcc-component.mk 7 ●●●● patch | view | raw | blame | history
make-rules/gcc-component.mk
@@ -129,11 +129,8 @@
# 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
CONFIGURE_OPTIONS += $(if $(strip $(shell $(CC) --version | grep $(COMPONENT_VERSION))),--disable-bootstrap,)
COMPONENT_BUILD_TARGETS = $(if $(strip $(shell $(CC) --version | grep $(COMPONENT_VERSION))),,bootstrap)
# On SPARC systems, use Sun Assembler
CONFIGURE_OPTIONS.sparc+= --without-gnu-as --with-as=/usr/bin/as