binutils: fix toolchain crossbuild

gcc on x86_64 doesn't support mbrach-predict=standard so this has removed
for toolchain pass1
This commit is contained in:
Arne Fitzenreiter
2023-12-06 08:16:33 +01:00
parent 43d72238cb
commit ea381f64a8

View File

@@ -51,6 +51,8 @@ ifeq "$(PASS)" "1"
CFLAGS := $(patsubst -mfloat-abi=%,,$(CFLAGS))
CFLAGS := $(patsubst -mindirect-branch=%,,$(CFLAGS))
CFLAGS := $(patsubst -mfunction-return=%,,$(CFLAGS))
CFLAGS := $(patsubst -mbranch-protection=%,,$(CFLAGS))
CXXFLAGS := $(patsubst -mbranch-protection=%,,$(CXXFLAGS))
CFLAGS := $(patsubst -fstack-clash-protection,,$(CFLAGS))
CFLAGS := $(patsubst -fcf-protection,,$(CFLAGS))