EXTRA_CONFIG = \
--prefix=/usr \
--enable-shared \
- --disable-nls \
- --disable-werror
+ --with-system-zlib \
+ --enable-plugins \
+ --enable-ld=default \
+ --disable-gold
EXTRA_MAKE = tooldir=/usr
EXTRA_INSTALL = tooldir=/usr
else
--target=$(CROSSTARGET) \
--prefix=/tools \
--with-sysroot=$(ROOT) \
- --with-lib-path=/tools/lib \
- --disable-nls \
- --disable-werror
+ --with-lib-path=/tools/lib
EXTRA_MAKE =
EXTRA_INSTALL =
else
--host=$(BUILDTARGET) \
--build=$(BUILDTARGET) \
--prefix=/tools \
- --with-lib-path=/tools/lib \
- --disable-nls \
- --disable-werror
+ --with-lib-path=/tools/lib
EXTRA_MAKE =
EXTRA_INSTALL =
endif
endif
-ifeq "$(MACHINE)" "armv5tel"
+ifeq "$(BUILD_ARCH)" "armv5tel"
EXTRA_CONFIG += \
--with-abi=aapcs-linux \
--with-float=soft
endif
EXTRA_CONFIG += \
+ --disable-werror \
--enable-64-bit-bfd
###############################################################################
# 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 && cp -v ld/ld-new /tools/bin
endif
+
+ifeq "$(TOOLCHAIN)" "1"
+ ifeq "$(PASS)" "2"
+ 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
+
@rm -rf $(DIR_APP) $(DIR_SRC)/binutils-build
@$(POSTBUILD)