From ea381f64a8426ad89ef7d49c80d5cbd9ada8147c Mon Sep 17 00:00:00 2001 From: Arne Fitzenreiter Date: Wed, 6 Dec 2023 08:16:33 +0100 Subject: [PATCH] binutils: fix toolchain crossbuild gcc on x86_64 doesn't support mbrach-predict=standard so this has removed for toolchain pass1 --- lfs/binutils | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lfs/binutils b/lfs/binutils index 2b5c65592d..b4b3cd9212 100644 --- a/lfs/binutils +++ b/lfs/binutils @@ -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)) -- 2.47.3