mirror of
https://github.com/vincentmli/bpfire.git
synced 2026-05-12 07:31:37 +02:00
make.sh: Cleanup of polluted environment
The build environment is using a number of variables which occasionally conflicted with some other build systems. This patch cleans that up by renaming some variables and later unexporting them in the lfs files. Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
This commit is contained in:
12
lfs/binutils
12
lfs/binutils
@@ -72,7 +72,7 @@ else
|
||||
endif
|
||||
endif
|
||||
|
||||
ifeq "$(MACHINE)" "armv5tel"
|
||||
ifeq "$(BUILD_ARCH)" "armv5tel"
|
||||
EXTRA_CONFIG += \
|
||||
--with-abi=aapcs-linux \
|
||||
--with-float=soft
|
||||
@@ -124,15 +124,15 @@ $(TARGET) : $(patsubst %,$(DIR_DL)/%,$(objects))
|
||||
# Prevent installing libiberty to lib64.
|
||||
cd $(DIR_APP) && sed -i 's%\(^MULTIOSDIR = \).*%\1 ../lib%' libiberty/Makefile.in
|
||||
|
||||
cd $(DIR_SRC)/binutils-build && $(EXTRA_ENV) MACHINE= $(DIR_APP)/configure $(EXTRA_CONFIG)
|
||||
cd $(DIR_SRC)/binutils-build && make $(EXTRA_MAKE) $(MAKETUNING) MACHINE=
|
||||
cd $(DIR_SRC)/binutils-build && make $(EXTRA_INSTALL) install MACHINE=
|
||||
cd $(DIR_SRC)/binutils-build && $(EXTRA_ENV) $(DIR_APP)/configure $(EXTRA_CONFIG)
|
||||
cd $(DIR_SRC)/binutils-build && make $(EXTRA_MAKE) $(MAKETUNING)
|
||||
cd $(DIR_SRC)/binutils-build && make $(EXTRA_INSTALL) install
|
||||
ifeq "$(ROOT)" ""
|
||||
cp -v $(DIR_APP)/include/libiberty.h /usr/include
|
||||
else
|
||||
ifeq "$(PASS)" "2"
|
||||
cd $(DIR_SRC)/binutils-build && make -C ld clean MACHINE=
|
||||
cd $(DIR_SRC)/binutils-build && make -C ld LIB_PATH=/usr/lib:/lib MACHINE=
|
||||
cd $(DIR_SRC)/binutils-build && make -C ld clean
|
||||
cd $(DIR_SRC)/binutils-build && make -C ld LIB_PATH=/usr/lib:/lib
|
||||
cd $(DIR_SRC)/binutils-build && cp -v ld/ld-new /tools/bin
|
||||
endif
|
||||
endif
|
||||
|
||||
Reference in New Issue
Block a user