mirror of
https://github.com/vincentmli/bpfire.git
synced 2026-04-25 18:32:57 +02:00
Don't compile first pass of toolchain with -march=...
Needed to cross compile the i586 toolchain on x86_64.
This commit is contained in:
@@ -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) \
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user