toolchain: reinstate host/usr/bin/$arch-linux-* symlinks for gcc/gdb binaries

As people might be using them.

Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
This commit is contained in:
Peter Korsgaard 2012-06-23 21:26:16 +02:00
parent b7b640d812
commit 3f487ef728
2 changed files with 5 additions and 0 deletions

View File

@ -482,6 +482,10 @@ endif
if [ ! -e $(HOST_DIR)/usr/$(GNU_TARGET_NAME)/bin/cc ]; then \ if [ ! -e $(HOST_DIR)/usr/$(GNU_TARGET_NAME)/bin/cc ]; then \
ln -snf gcc $(HOST_DIR)/usr/$(GNU_TARGET_NAME)/bin/cc; \ ln -snf gcc $(HOST_DIR)/usr/$(GNU_TARGET_NAME)/bin/cc; \
fi 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 mkdir -p $(TARGET_DIR)/usr/lib $(TARGET_DIR)/usr/sbin
touch $@ touch $@

View File

@ -203,6 +203,7 @@ $(GDB_HOST_DIR)/gdb/gdb: $(GDB_HOST_DIR)/.configured
$(TARGET_CROSS)gdb: $(GDB_HOST_DIR)/gdb/gdb $(TARGET_CROSS)gdb: $(GDB_HOST_DIR)/gdb/gdb
install -c $(GDB_HOST_DIR)/gdb/gdb $(TARGET_CROSS)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 gdbhost: host-expat $(TARGET_CROSS)gdb