summaryrefslogtreecommitdiff
path: root/toolchain/binutils
diff options
context:
space:
mode:
authorWaldemar Brodkorb <wbx@openadk.org>2015-12-04 21:46:42 +0100
committerWaldemar Brodkorb <wbx@openadk.org>2015-12-04 21:46:52 +0100
commit17b1218c61278ee70b35134d4956b3322303448d (patch)
treeb41e818f7a155a215501b9c27782343339ed0382 /toolchain/binutils
parent17b776bab6e6414b735f2f62f8e3783717fa3248 (diff)
get the uClibc-ng testsuite correctly linked as bFLT, create missing symlink to ld
Diffstat (limited to 'toolchain/binutils')
-rw-r--r--toolchain/binutils/Makefile16
1 files changed, 12 insertions, 4 deletions
diff --git a/toolchain/binutils/Makefile b/toolchain/binutils/Makefile
index 7b276ae6d..78e293ea4 100644
--- a/toolchain/binutils/Makefile
+++ b/toolchain/binutils/Makefile
@@ -38,7 +38,6 @@ ifeq (${ADK_STATIC_TOOLCHAIN},y)
BINUTILS_STATIC_MAKEOPTS+=LDFLAGS='$(HOST_STATIC_LLDFLAGS)'
endif
-$(WRKBUILD)/.headers:
$(WRKBUILD)/.configured:
ifeq ($(ADK_TARGET_ARCH_XTENSA),y)
tar xf $(ADK_TOPDIR)/target/xtensa/overlay/xtensa_$(ADK_TARGET_XTENSA).tar \
@@ -59,11 +58,11 @@ endif
${CONFOPTS} \
);
$(MAKE) ${BINUTILS_MAKEOPTS} -C $(WRKBUILD) configure-host
- @touch $@
+ touch $@
$(WRKBUILD)/.compiled: $(WRKBUILD)/.configured
$(MAKE) ${BINUTILS_MAKEOPTS} ${BINUTILS_STATIC_MAKEOPTS} -C $(WRKBUILD) all
- @touch $@
+ touch $@
$(WRKBUILD)/.installed: $(WRKBUILD)/.compiled
$(MAKE) -C $(WRKBUILD) install
@@ -73,6 +72,15 @@ ifeq ($(ADK_TARGET_ARCH_H8300),y)
$(CP) $(WRKBUILD)/ld/ldscripts/* $(STAGING_TARGET_DIR)/usr/lib/ldscripts/
endif
endif
- @touch $@
+ifeq ($(ADK_TARGET_USE_GOLD),y)
+ (cd $(TOOLCHAIN_DIR)/usr/bin && \
+ ln -sf $(GNU_TARGET_NAME)-ld.gold $(GNU_TARGET_NAME)-ld)
+else
+ifeq (ADK_TOOLCHAIN_BINUTILS_2_20_1),)
+ (cd $(TOOLCHAIN_DIR)/usr/bin && \
+ ln -sf $(GNU_TARGET_NAME)-ld.bfd $(GNU_TARGET_NAME)-ld)
+endif
+endif
+ touch $@
include ${ADK_TOPDIR}/mk/toolchain.mk