summaryrefslogtreecommitdiff
path: root/toolchain/gcc
diff options
context:
space:
mode:
authorWaldemar Brodkorb <wbx@openadk.org>2014-02-12 12:34:30 +0100
committerWaldemar Brodkorb <wbx@openadk.org>2014-02-12 12:34:30 +0100
commit250a8ef6bb0da8ef615b167811081cc35b7a5fe7 (patch)
tree0cc3619127cec12b8bac6a733b4bf7f4740c8bfe /toolchain/gcc
parentbc2fd4900222c904751d14906b5e4cd3372d14e8 (diff)
fix toolchain component linking
Diffstat (limited to 'toolchain/gcc')
-rw-r--r--toolchain/gcc/Makefile6
1 files changed, 3 insertions, 3 deletions
diff --git a/toolchain/gcc/Makefile b/toolchain/gcc/Makefile
index 951684443..26f1dc96a 100644
--- a/toolchain/gcc/Makefile
+++ b/toolchain/gcc/Makefile
@@ -175,11 +175,11 @@ $(WRKBUILD)/.installed: $(WRKBUILD)/.compiled
ln -sf $${app} \
$(GNU_TARGET_NAME)$${app##$(REAL_GNU_TARGET_NAME)}; \
done;
- # remove duplicate tools
+ # remove duplicate tools, convert hardlinks to symlinks
set -e; \
cd $(STAGING_HOST_DIR)/bin; \
- for app in $(REAL_GNU_TARGET_NAME)-* ; do \
- ln -sf ../$(REAL_GNU_TARGET_NAME)/bin/$${app##$(REAL_GNU_TARGET_NAME)-} $${app}; \
+ for app in ar as c++ g++ gcc gcc-${PKG_VERSION} ld ld.bfd nm objcopy objdump ranlib strip; do \
+ ln -sf ../$(REAL_GNU_TARGET_NAME)/bin/$${app} $(REAL_GNU_TARGET_NAME)-$${app}; \
done;
# setup symlink, so that gcc/g++ find cc1plus
(cd $(STAGING_HOST_DIR)/$(REAL_GNU_TARGET_NAME)/ && \