]> git.ipfire.org Git - ipfire-2.x.git/commitdiff
gcc: remove CCFLAGS only in pass1 of the toolchain
authorArne Fitzenreiter <arne_f@ipfire.org>
Thu, 1 Jul 2021 06:42:36 +0000 (08:42 +0200)
committerArne Fitzenreiter <arne_f@ipfire.org>
Mon, 5 Jul 2021 05:42:39 +0000 (07:42 +0200)
Signed-off-by: Arne Fitzenreiter <arne_f@ipfire.org>
lfs/gcc

diff --git a/lfs/gcc b/lfs/gcc
index d5676c1cdd98c35b5f46cee218e00a1c43bdaf47..02c33ba5100ac4b66a4c69979a13ecfc74dc5615 100644 (file)
--- a/lfs/gcc
+++ b/lfs/gcc
@@ -35,13 +35,13 @@ DL_FILE    = $(THISAPP).tar.xz
 DL_FROM    = $(URL_IPFIRE)
 DIR_APP    = $(DIR_SRC)/$(THISAPP)
 
+ifeq "$(PASS)" "1"
 CFLAGS    := $(patsubst -march=%,,$(CFLAGS))
 CFLAGS    := $(patsubst -mfpu=%,,$(CFLAGS))
 CFLAGS    := $(patsubst -mtune=%,,$(CFLAGS))
 CFLAGS    := $(patsubst -mfloat-abi=%,,$(CFLAGS))
 CFLAGS    := $(filter-out -fexceptions,$(CFLAGS))
 
-ifeq "$(PASS)" "1"
 CFLAGS    := $(patsubst -mindirect-branch=%,,$(CFLAGS))
 CFLAGS    := $(patsubst -mfunction-return=%,,$(CFLAGS))
 CFLAGS    := $(patsubst -fstack-clash-protection,,$(CFLAGS))