Browse Source

fix toolchain component linking

Waldemar Brodkorb 10 years ago
parent
commit
250a8ef6bb
2 changed files with 5 additions and 4 deletions
  1. 2 1
      TODO
  2. 3 3
      toolchain/gcc/Makefile

+ 2 - 1
TODO

@@ -1,4 +1,5 @@
-- cleanup toolchain building, add toolchain archiv creation target
+- cleanup toolchain building, add toolchain archive creation target
+- add fb full screen logo
 - update uclibc to git
 - update gcc to 4.8.2
 - port opkg with gpg signing

+ 3 - 3
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)/ && \