mirror of
https://github.com/vincentmli/bpfire.git
synced 2026-04-28 11:43:25 +02:00
binutils: fix build on arm.
MACHINE env variable is needed to be clear.
This commit is contained in:
10
lfs/binutils
10
lfs/binutils
@@ -1,7 +1,7 @@
|
|||||||
###############################################################################
|
###############################################################################
|
||||||
# #
|
# #
|
||||||
# IPFire.org - A linux based firewall #
|
# IPFire.org - A linux based firewall #
|
||||||
# Copyright (C) 2007-2013 IPFire Team <info@ipfire.org> #
|
# Copyright (C) 2007-2015 IPFire Team <info@ipfire.org> #
|
||||||
# #
|
# #
|
||||||
# This program is free software: you can redistribute it and/or modify #
|
# This program is free software: you can redistribute it and/or modify #
|
||||||
# it under the terms of the GNU General Public License as published by #
|
# it under the terms of the GNU General Public License as published by #
|
||||||
@@ -36,8 +36,6 @@ DIR_APP = $(DIR_SRC)/$(THISAPP)
|
|||||||
ifeq "$(ROOT)" ""
|
ifeq "$(ROOT)" ""
|
||||||
TARGET = $(DIR_INFO)/$(THISAPP)
|
TARGET = $(DIR_INFO)/$(THISAPP)
|
||||||
EXTRA_CONFIG = \
|
EXTRA_CONFIG = \
|
||||||
--host="${BUILDTARGET}" \
|
|
||||||
--build="${BUILDTARGET}" \
|
|
||||||
--prefix=/usr \
|
--prefix=/usr \
|
||||||
--enable-shared \
|
--enable-shared \
|
||||||
--disable-nls
|
--disable-nls
|
||||||
@@ -130,9 +128,9 @@ $(TARGET) : $(patsubst %,$(DIR_DL)/%,$(objects))
|
|||||||
# Prevent installing libiberty to lib64.
|
# Prevent installing libiberty to lib64.
|
||||||
cd $(DIR_APP) && sed -i 's%\(^MULTIOSDIR = \).*%\1 ../lib%' libiberty/Makefile.in
|
cd $(DIR_APP) && sed -i 's%\(^MULTIOSDIR = \).*%\1 ../lib%' libiberty/Makefile.in
|
||||||
|
|
||||||
cd $(DIR_SRC)/binutils-build && $(EXTRA_ENV) $(DIR_APP)/configure $(EXTRA_CONFIG)
|
cd $(DIR_SRC)/binutils-build && $(EXTRA_ENV) MACHINE= $(DIR_APP)/configure $(EXTRA_CONFIG)
|
||||||
cd $(DIR_SRC)/binutils-build && make $(EXTRA_MAKE) $(MAKETUNING)
|
cd $(DIR_SRC)/binutils-build && make $(EXTRA_MAKE) $(MAKETUNING) MACHINE=
|
||||||
cd $(DIR_SRC)/binutils-build && make $(EXTRA_INSTALL) install
|
cd $(DIR_SRC)/binutils-build && make $(EXTRA_INSTALL) install MACHINE=
|
||||||
ifeq "$(ROOT)" ""
|
ifeq "$(ROOT)" ""
|
||||||
cp -v $(DIR_APP)/include/libiberty.h /usr/include
|
cp -v $(DIR_APP)/include/libiberty.h /usr/include
|
||||||
else
|
else
|
||||||
|
|||||||
Reference in New Issue
Block a user