mirror of
https://github.com/vincentmli/bpfire.git
synced 2026-04-09 18:45:54 +02:00
gcc: Perform full bootstrap on ARM32
The build fails with various reasons and a full bootstrap always succeeds. This takes a very long time so we try to avoid it where ever possible. Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
This commit is contained in:
16
lfs/gcc
16
lfs/gcc
@@ -41,6 +41,14 @@ CFLAGS := $(patsubst -mfloat-abi=%,,$(CFLAGS))
|
||||
CFLAGS := $(filter-out -fexceptions,$(CFLAGS))
|
||||
CXXFLAGS := $(CFLAGS)
|
||||
|
||||
ifeq "$(BUILD_ARCH)" "armv7hl"
|
||||
FULL_BOOTSTRAP = 1
|
||||
endif
|
||||
|
||||
ifeq "$(BUILD_ARCH)" "armv5tel"
|
||||
FULL_BOOTSTRAP = 1
|
||||
endif
|
||||
|
||||
# Normal build or /tools build.
|
||||
#
|
||||
ifeq "$(ROOT)" ""
|
||||
@@ -109,9 +117,15 @@ ifeq "$(PASS)" "2"
|
||||
--enable-__cxa_atexit \
|
||||
--enable-languages=c,c++ \
|
||||
--disable-libstdcxx-pch \
|
||||
--disable-bootstrap
|
||||
--disable-libgomp
|
||||
EXTRA_MAKE =
|
||||
EXTRA_INSTALL =
|
||||
|
||||
ifeq "$(FULL_BOOTSTRAP)" "1"
|
||||
EXTRA_CONFIG += --enable-bootstrap
|
||||
else
|
||||
EXTRA_CONFIG += --disable-bootstrap
|
||||
endif
|
||||
else
|
||||
# PASS=L # libstdc++-v3
|
||||
TARGET = $(DIR_INFO)/$(THISAPP)-libstdc++
|
||||
|
||||
Reference in New Issue
Block a user