Don't compile first pass of toolchain with -march=...

Needed to cross compile the i586 toolchain on x86_64.
This commit is contained in:
Michael Tremer
2012-08-15 18:48:10 +02:00
parent c51823b2c4
commit 222362c3e2
3 changed files with 3 additions and 1 deletions

View File

@@ -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) \

View File

@@ -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

View File

@@ -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) \