diff --git a/lfs/binutils b/lfs/binutils index 48aee5c32..791483f21 100644 --- a/lfs/binutils +++ b/lfs/binutils @@ -44,6 +44,7 @@ ifeq "$(ROOT)" "" else ifeq "$(PASS)" "1" CFLAGS := $(patsubst -march=%,,$(CFLAGS)) + CFLAGS := $(patsubst -mfloat-abi=%,,$(CFLAGS)) TARGET = $(DIR_INFO)/$(THISAPP)-tools1 EXTRA_CONFIG = \ --target=$(CROSSTARGET) \ diff --git a/lfs/ccache b/lfs/ccache index b4ef60765..44010f962 100644 --- a/lfs/ccache +++ b/lfs/ccache @@ -34,6 +34,7 @@ TARGET = $(DIR_INFO)/$(THISAPP)-pass$(PASS) ifeq "$(PASS)" "1" CFLAGS := $(patsubst -march=%,,$(CFLAGS)) + CFLAGS := $(patsubst -mfloat-abi=%,,$(CFLAGS)) endif # Set max cache size to 5GB diff --git a/lfs/gcc b/lfs/gcc index 400cf269d..0bdecdaef 100644 --- a/lfs/gcc +++ b/lfs/gcc @@ -36,6 +36,7 @@ DIR_APP = $(DIR_SRC)/$(THISAPP) CFLAGS := $(patsubst -march=%,,$(CFLAGS)) CFLAGS := $(patsubst -mtune=%,,$(CFLAGS)) +CFLAGS := $(patsubst -mfloat-abi=%,,$(CFLAGS)) # Normal build or /tools build. # @@ -118,10 +119,6 @@ EXTRA_CONFIG += \ export XCFLAGS = $(CFLAGS) export TCFLAGS = $(CFLAGS) -ifeq "$(PASS)" "1" - CFLAGS = -endif - ############################################################################### # Top-level Rules ###############################################################################