From 4b8ef36d94841c7743e961e46e2f6fa62bafb92c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20Storsj=C3=B6?= Date: Fri, 22 Apr 2022 13:45:13 +0300 Subject: [PATCH] install-wrappers: Don't install cross-prefixed cc/c99/c11 tools A regular GCC install doesn't provide tools like -{cc,c99,c11}, so there's probably not much need to include them. Some distributions of tools may provide tools with the names "cc", "c99" and "c11" though, as custom frontends or symlinks to the regular compiler. Therefore, keep the unprefixed tools with these names. --- install-wrappers.sh | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/install-wrappers.sh b/install-wrappers.sh index 6907155..11ac963 100755 --- a/install-wrappers.sh +++ b/install-wrappers.sh @@ -85,7 +85,7 @@ fi cd "$PREFIX/bin" for arch in $ARCHS; do for target_os in $TARGET_OSES; do - for exec in clang clang++ gcc g++ cc c99 c11 c++ as; do + for exec in clang clang++ gcc g++ c++ as; do ln -sf clang-target-wrapper$CTW_SUFFIX $arch-w64-$target_os-$exec$CTW_LINK_SUFFIX done for exec in addr2line ar ranlib nm objcopy readelf strings strip; do @@ -117,9 +117,12 @@ if [ -n "$EXEEXT" ]; then # we are installing wrappers for. case $ARCHS in *$HOST_ARCH*) - for exec in clang clang++ gcc g++ cc c99 c11 c++ addr2line ar dlltool ranlib nm objcopy readelf strings strip windres; do + for exec in clang clang++ gcc g++ c++ addr2line ar dlltool ranlib nm objcopy readelf strings strip windres; do ln -sf $HOST-$exec$EXEEXT $exec$EXEEXT done + for exec in cc c99 c11; do + ln -sf clang$EXEEXT $exec$EXEEXT + done for exec in ld objdump; do ln -sf $HOST-$exec $exec done