From 8e01581f67579888651ab39f8602ea89062d1c72 Mon Sep 17 00:00:00 2001 From: Michael Tremer Date: Sat, 20 May 2017 09:32:51 +0100 Subject: [PATCH] binutils: Remove any host optimisations in toolchain's first pass Signed-off-by: Michael Tremer --- lfs/binutils | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lfs/binutils b/lfs/binutils index db59d97b4..8bf6decd9 100644 --- a/lfs/binutils +++ b/lfs/binutils @@ -46,6 +46,9 @@ ifeq "$(ROOT)" "" EXTRA_INSTALL = tooldir=/usr else ifeq "$(PASS)" "1" + CFLAGS := $(patsubst -march=%,,$(CFLAGS)) + CFLAGS := $(patsubst -mfloat-abi=%,,$(CFLAGS)) + TARGET = $(DIR_INFO)/$(THISAPP)-tools1 EXTRA_CONFIG = \ --target=$(CROSSTARGET) \