]> git.ipfire.org Git - ipfire-2.x.git/commitdiff
gcc: fix toolchain crossbuild
authorArne Fitzenreiter <arne_f@ipfire.org>
Wed, 6 Dec 2023 07:18:42 +0000 (08:18 +0100)
committerArne Fitzenreiter <arne_f@ipfire.org>
Wed, 6 Dec 2023 07:21:05 +0000 (08:21 +0100)
gcc doesn't support mbranch-predict=standard on x86_64
so this is removed in toolchain pass1

lfs/gcc

diff --git a/lfs/gcc b/lfs/gcc
index c979aa199fa22ecf8b7977150cf30f1b90474d30..5183903c7e5dfcfb6ddbf78a75a851053b06e045 100644 (file)
--- a/lfs/gcc
+++ b/lfs/gcc
@@ -43,6 +43,7 @@ CFLAGS    := $(patsubst -mfloat-abi=%,,$(CFLAGS))
 CFLAGS    := $(filter-out -fexceptions,$(CFLAGS))
 
 CFLAGS    := $(patsubst -mindirect-branch=%,,$(CFLAGS))
+CFLAGS    := $(patsubst -mbranch-protection=%,,$(CFLAGS))
 CFLAGS    := $(patsubst -mfunction-return=%,,$(CFLAGS))
 CFLAGS    := $(patsubst -fstack-clash-protection,,$(CFLAGS))
 CFLAGS    := $(patsubst -fcf-protection,,$(CFLAGS))