install-wrappers: Don't install cross-prefixed cc/c99/c11 tools

A regular GCC install doesn't provide tools like <triple>-{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.
This commit is contained in:
Martin Storsjö committed 2022-06-08 23:12:40 +03:00
1 parent 52d7bee3a8
commit 4b8ef36d94
1 file changed
+5 -2
+5 -2
View File
@@ -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