diff options
author | Jonas Gorski <jogo@openwrt.org> | 2014-09-07 09:38:10 +0000 |
---|---|---|
committer | Jonas Gorski <jogo@openwrt.org> | 2014-09-07 09:38:10 +0000 |
commit | 68fcb15f90edd92ef36990c5696b9e79df07a6ec (patch) | |
tree | 98312460650b4e755d0d2e05ab1d616679c87c75 /toolchain/binutils | |
parent | 60eeadd0ba55c1769c548ef0869a34b8628f086d (diff) | |
download | mtk-20170518-68fcb15f90edd92ef36990c5696b9e79df07a6ec.zip mtk-20170518-68fcb15f90edd92ef36990c5696b9e79df07a6ec.tar.gz mtk-20170518-68fcb15f90edd92ef36990c5696b9e79df07a6ec.tar.bz2 |
toolchain/binutils: do not install host libiberty.a into target lib dir
Binutils target build will pick it up and break build on e.g. arm:
libtool: link: arm-openwrt-linux-uclibcgnueabi-gcc -shared .libs/archive.o .libs/archures.o .libs/bfd.o .libs/bfdio.o .libs/bfdwin.o .libs/cache.o .libs/coffgen.o .libs/corefile.o .libs/format.o .libs/init.o .libs/libbfd.o .libs/opncls.o .libs/reloc.o .libs/section.o .libs/syms.o .libs/targets.o .libs/hash.o .libs/linker.o .libs/srec.o .libs/binary.o .libs/tekhex.o .libs/ihex.o .libs/stabs.o .libs/stab-syms.o .libs/merge.o .libs/dwarf2.o .libs/simple.o .libs/compress.o .libs/verilog.o .libs/elf32-arm.o .libs/elf32.o .libs/elf-nacl.o .libs/elf-vxworks.o .libs/elf.o .libs/elflink.o .libs/elf-attrs.o .libs/elf-strtab.o .libs/elf-eh-frame.o .libs/dwarf1.o .libs/elf32-gen.o .libs/cpu-arm.o -L/mnt/dl/slave/at91/build/staging_dir/target-arm_arm926ej-s_uClibc-0.9.33.2_eabi/usr/lib -L/mnt/dl/slave/at91/build/staging_dir/target-arm_arm926ej-s_uClibc-0.9.33.2_eabi/lib -L/mnt/dl/slave/at91/build/staging_dir/toolchain-arm_arm926ej-s_gcc-4.8-linaro_uClibc-0.9.33.2_eabi/usr/lib -L/mnt/dl/slave/at91/build/staging_dir/toolchain-arm_arm926ej-s_gcc-4.8-linaro_uClibc-0.9.33.2_eabi/lib -L/mnt/dl/slave/at91/build/build_dir/target-arm_arm926ej-s_uClibc-0.9.33.2_eabi/binutils-2.24/bfd/../libiberty/pic -liberty -lz -march=armv5te -mtune=arm926ej-s -mfloat-abi=soft -Wl,-lc -Wl,--as-needed -Wl,-lm -Wl,--no-as-needed -Wl,-soname -Wl,libbfd-2.24.so -o .libs/libbfd-2.24.so
/mnt/dl/slave/at91/build/staging_dir/toolchain-arm_arm926ej-s_gcc-4.8-linaro_uClibc-0.9.33.2_eabi/lib/libiberty.a: could not read symbols: File format not recognized
Signed-off-by: Jonas Gorski <jogo@openwrt.org>
SVN-Revision: 42430
Diffstat (limited to 'toolchain/binutils')
-rw-r--r-- | toolchain/binutils/Makefile | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/toolchain/binutils/Makefile b/toolchain/binutils/Makefile index 466b6ac..73c303f 100644 --- a/toolchain/binutils/Makefile +++ b/toolchain/binutils/Makefile @@ -89,6 +89,7 @@ define Host/Install prefix=$(TOOLCHAIN_DIR)/initial \ install $(call FixupLibdir,$(TOOLCHAIN_DIR)/initial) + $(RM) $(TOOLCHAIN_DIR)/initial/lib/libiberty.a $(CP) $(TOOLCHAIN_DIR)/initial/. $(TOOLCHAIN_DIR)/ $(CP) $(TOOLCHAIN_DIR)/bin/$(REAL_GNU_TARGET_NAME)-readelf $(REAL_STAGING_DIR_HOST)/bin/readelf endef |