mirror of
https://github.com/vincentmli/bpfire.git
synced 2026-04-09 18:45:54 +02:00
gcc: remove CCFLAGS only in pass1 of the toolchain
Signed-off-by: Arne Fitzenreiter <arne_f@ipfire.org>
This commit is contained in:
2
lfs/gcc
2
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))
|
||||
|
||||
Reference in New Issue
Block a user