From f3c01b39e41fe4739ee6bc1b9b7b14d4f1f987e4 Mon Sep 17 00:00:00 2001 From: Arne Fitzenreiter Date: Fri, 7 Jul 2017 10:12:28 +0200 Subject: [PATCH] toolchain: filter -mfpu from CFLAGS for first pass Signed-off-by: Arne Fitzenreiter --- lfs/binutils | 3 ++- lfs/ccache | 1 + lfs/gcc | 3 ++- 3 files changed, 5 insertions(+), 2 deletions(-) diff --git a/lfs/binutils b/lfs/binutils index 8bf6decd94..79ac96b3e2 100644 --- a/lfs/binutils +++ b/lfs/binutils @@ -1,7 +1,7 @@ ############################################################################### # # # IPFire.org - A linux based firewall # -# Copyright (C) 2007-2016 IPFire Team # +# Copyright (C) 2007-2017 IPFire Team # # # # This program is free software: you can redistribute it and/or modify # # it under the terms of the GNU General Public License as published by # @@ -47,6 +47,7 @@ ifeq "$(ROOT)" "" else ifeq "$(PASS)" "1" CFLAGS := $(patsubst -march=%,,$(CFLAGS)) + CFLAGS := $(patsubst -mfpu=%,,$(CFLAGS)) CFLAGS := $(patsubst -mfloat-abi=%,,$(CFLAGS)) TARGET = $(DIR_INFO)/$(THISAPP)-tools1 diff --git a/lfs/ccache b/lfs/ccache index 43f4df70ec..f7da652ad8 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 -mfpu=%,,$(CFLAGS)) CFLAGS := $(patsubst -mfloat-abi=%,,$(CFLAGS)) endif diff --git a/lfs/gcc b/lfs/gcc index f04e2df8c0..9325792ffe 100644 --- a/lfs/gcc +++ b/lfs/gcc @@ -1,7 +1,7 @@ ############################################################################### # # # IPFire.org - A linux based firewall # -# Copyright (C) 2007-2016 IPFire Team # +# Copyright (C) 2007-2017 IPFire Team # # # # This program is free software: you can redistribute it and/or modify # # it under the terms of the GNU General Public License as published by # @@ -36,6 +36,7 @@ DL_FROM = $(URL_IPFIRE) DIR_APP = $(DIR_SRC)/$(THISAPP) CFLAGS := $(patsubst -march=%,,$(CFLAGS)) +CFLAGS := $(patsubst -mfpu=%,,$(CFLAGS)) CFLAGS := $(patsubst -mtune=%,,$(CFLAGS)) CFLAGS := $(patsubst -mfloat-abi=%,,$(CFLAGS)) CFLAGS := $(filter-out -fexceptions,$(CFLAGS)) -- 2.39.5