mirror of
https://github.com/vincentmli/bpfire.git
synced 2026-04-09 18:45:54 +02:00
toolchain: fix build on arm with hardfloat host distro.
This commit is contained in:
@@ -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) \
|
||||
|
||||
@@ -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
|
||||
|
||||
5
lfs/gcc
5
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
|
||||
###############################################################################
|
||||
|
||||
Reference in New Issue
Block a user