X-Git-Url: http://git.ipfire.org/?p=ipfire-2.x.git;a=blobdiff_plain;f=lfs%2Fgcc;fp=lfs%2Fgcc;h=fc951764044069303dd91f17d184ec07470230b2;hp=6638ba07ea58196b2ccffd06e9d260a8c8c3952a;hb=b45e371ff71e6a321849ede22bcd606d2b42cebd;hpb=8bc5ded22e29e1ab89aa2015ae9095dae8bf76e4 diff --git a/lfs/gcc b/lfs/gcc index 6638ba07ea..fc95176404 100644 --- a/lfs/gcc +++ b/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++