]> git.ipfire.org Git - people/pmueller/ipfire-2.x.git/commitdiff
binutils: fix toolchain crossbuild
authorArne Fitzenreiter <arne_f@ipfire.org>
Wed, 6 Dec 2023 07:16:33 +0000 (08:16 +0100)
committerArne Fitzenreiter <arne_f@ipfire.org>
Wed, 6 Dec 2023 07:16:33 +0000 (08:16 +0100)
gcc on x86_64 doesn't support mbrach-predict=standard so this has removed
for toolchain pass1

lfs/binutils

index 2b5c65592d7ba97e17b84a0bf019b0435146bd77..b4b3cd921293f5366d907e0d4894573952db6889 100644 (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))