From: Eric Andersen Date: Tue, 20 Jan 2004 17:51:43 +0000 (-0000) Subject: As noted by Joakim Tjernlund, we should force ln to overwrite X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=78fe4bffde5f0feec20e2b7f9e065b48faad80f0;p=buildroot.git As noted by Joakim Tjernlund, we should force ln to overwrite existing symlinks. --- diff --git a/make/gcc-uclibc-2.95.mk b/make/gcc-uclibc-2.95.mk index c9f1b92da3..5a20512929 100644 --- a/make/gcc-uclibc-2.95.mk +++ b/make/gcc-uclibc-2.95.mk @@ -188,10 +188,10 @@ $(GCC_BUILD_DIR2)/.installed: $(GCC_BUILD_DIR2)/.compiled # Set up the symlinks to enable lying about target name. set -e; \ (cd $(STAGING_DIR); \ - ln -s $(REAL_GNU_TARGET_NAME) $(GNU_TARGET_NAME); \ + ln -sf $(REAL_GNU_TARGET_NAME) $(GNU_TARGET_NAME); \ cd bin; \ for app in $(REAL_GNU_TARGET_NAME)-* ; do \ - ln -s $${app} \ + ln -sf $${app} \ $(GNU_TARGET_NAME)$${app##$(REAL_GNU_TARGET_NAME)}; \ done; \ ); diff --git a/make/gcc-uclibc-3.3.mk b/make/gcc-uclibc-3.3.mk index 532373a198..172f112b46 100644 --- a/make/gcc-uclibc-3.3.mk +++ b/make/gcc-uclibc-3.3.mk @@ -153,10 +153,10 @@ $(GCC_BUILD_DIR2)/.installed: $(GCC_BUILD_DIR2)/.compiled # Set up the symlinks to enable lying about target name. set -e; \ (cd $(STAGING_DIR); \ - ln -s $(REAL_GNU_TARGET_NAME) $(GNU_TARGET_NAME); \ + ln -sf $(REAL_GNU_TARGET_NAME) $(GNU_TARGET_NAME); \ cd bin; \ for app in $(REAL_GNU_TARGET_NAME)-* ; do \ - ln -s $${app} \ + ln -sf $${app} \ $(GNU_TARGET_NAME)$${app##$(REAL_GNU_TARGET_NAME)}; \ done; \ );