From: Michael Tremer Date: Wed, 15 Aug 2012 16:48:10 +0000 (+0200) Subject: Don't compile first pass of toolchain with -march=... X-Git-Tag: v2.13-beta1~245^2~9 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=222362c3e20b9397ede90db7984e7511537d8e94;p=people%2Fstevee%2Fipfire-2.x.git Don't compile first pass of toolchain with -march=... Needed to cross compile the i586 toolchain on x86_64. --- diff --git a/lfs/binutils b/lfs/binutils index 104a2a7f89..9f687ad561 100644 --- a/lfs/binutils +++ b/lfs/binutils @@ -43,6 +43,7 @@ ifeq "$(ROOT)" "" EXTRA_INSTALL = tooldir=/usr else ifeq "$(PASS)" "1" + CFLAGS := $(patsubst -march=%,,$(CFLAGS)) TARGET = $(DIR_INFO)/$(THISAPP)-tools1 EXTRA_CONFIG = \ --target=$(CROSSTARGET) \ diff --git a/lfs/ccache b/lfs/ccache index 22b8c5e0b3..454032d0e1 100644 --- a/lfs/ccache +++ b/lfs/ccache @@ -33,7 +33,7 @@ DIR_APP = $(DIR_SRC)/$(THISAPP) TARGET = $(DIR_INFO)/$(THISAPP)-pass$(PASS) ifeq "$(PASS)" "1" - CFLAGS += -static + CFLAGS := $(patsubst -march=%,,$(CFLAGS)) -static endif # Set max cache size to 5GB diff --git a/lfs/gcc b/lfs/gcc index 82e0d915d0..c8bcb08f27 100644 --- a/lfs/gcc +++ b/lfs/gcc @@ -52,6 +52,7 @@ ifeq "$(ROOT)" "" EXTRA_INSTALL = else ifeq "$(PASS)" "1" + CFLAGS := $(patsubst -march=%,,$(CFLAGS)) TARGET = $(DIR_INFO)/$(THISAPP)-tools1 EXTRA_CONFIG = \ --target=$(CROSSTARGET) \