From 6e4478b7785ac0131446cd5532b8ea9c6e8b355c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20Storsj=C3=B6?= Date: Mon, 16 Jul 2018 17:57:55 +0300 Subject: [PATCH] Fix overwriting symlinks to directories This avoids extra misplaced symlinks if rerunning the build scripts. --- build-compiler-rt.sh | 2 +- build-mingw-w64.sh | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/build-compiler-rt.sh b/build-compiler-rt.sh index 76fd961..7e1049e 100755 --- a/build-compiler-rt.sh +++ b/build-compiler-rt.sh @@ -22,7 +22,7 @@ fi # Add a symlink for i386 -> i686; we normally name the toolchain # i686-w64-mingw32, but due to the compiler-rt cmake peculiarities, we # need to refer to it as i386 at this stage. -ln -sf i686-w64-mingw32 $PREFIX/i386-w64-mingw32 || true +ln -sfn i686-w64-mingw32 $PREFIX/i386-w64-mingw32 || true cd compiler-rt diff --git a/build-mingw-w64.sh b/build-mingw-w64.sh index dd4c879..5e64ab7 100755 --- a/build-mingw-w64.sh +++ b/build-mingw-w64.sh @@ -33,7 +33,7 @@ make install cd ../.. for arch in $ARCHS; do mkdir -p $PREFIX/$arch-w64-mingw32 - ln -sf ../generic-w64-mingw32/include $PREFIX/$arch-w64-mingw32/include + ln -sfn ../generic-w64-mingw32/include $PREFIX/$arch-w64-mingw32/include done cd mingw-w64-crt