toolchain: reinstate host/usr/bin/$arch-linux-* symlinks for gcc/gdb binaries
authorPeter Korsgaard <jacmet@sunsite.dk>
Sat, 23 Jun 2012 19:26:16 +0000 (21:26 +0200)
committerPeter Korsgaard <jacmet@sunsite.dk>
Sat, 23 Jun 2012 19:33:17 +0000 (21:33 +0200)
As people might be using them.

Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
toolchain/gcc/gcc-uclibc-4.x.mk
toolchain/gdb/gdb.mk

index 57f4f8a35b3a20ed2bc9700c3f91ac125a88523c..e29d797ccc462b0f78df7816603d3178f4724fdc 100644 (file)
@@ -482,6 +482,10 @@ endif
        if [ ! -e $(HOST_DIR)/usr/$(GNU_TARGET_NAME)/bin/cc ]; then \
                ln -snf gcc $(HOST_DIR)/usr/$(GNU_TARGET_NAME)/bin/cc; \
        fi
+       # arch-linux-* symlinks
+       cd $(HOST_DIR)/usr/bin; for i in $(GNU_TARGET_NAME)-*; do \
+               ln -snf $$i $(ARCH)-linux$${i##$(GNU_TARGET_NAME)}; \
+       done
 
        mkdir -p $(TARGET_DIR)/usr/lib $(TARGET_DIR)/usr/sbin
        touch $@
index 5673cf1e9f223446a94e35415cd4bfbcd1560403..f5af4541ac33e980b590438d89764ce470524693 100644 (file)
@@ -203,6 +203,7 @@ $(GDB_HOST_DIR)/gdb/gdb: $(GDB_HOST_DIR)/.configured
 
 $(TARGET_CROSS)gdb: $(GDB_HOST_DIR)/gdb/gdb
        install -c $(GDB_HOST_DIR)/gdb/gdb $(TARGET_CROSS)gdb
+       ln -snf $(@F) $(HOST_DIR)/usr/bin/$(ARCH)-linux-gdb
 
 gdbhost: host-expat $(TARGET_CROSS)gdb