Install unprefixed tools when cross compiling the toolchain

This commit is contained in:
Martin Storsjö committed 2018-10-10 23:33:19 +03:00
1 parent b5deb9fc1f
commit 9069c627a9
2 files changed
+9 -1

No files matched your search

+1 -1
View File
@@ -16,6 +16,6 @@ export HOST=$CROSS_ARCH-w64-mingw32
./build-llvm.sh $PREFIX
./strip-llvm.sh $PREFIX
./install-wrappers.sh $PREFIX
./build-mingw-w64-widl.sh $PREFIX
./install-wrappers.sh $PREFIX
./prepare-cross-toolchain.sh $NATIVE $PREFIX $CROSS_ARCH
+8
View File
@@ -64,4 +64,12 @@ if [ -n "$EXEEXT" ]; then
if [ ! -L clang$EXEEXT ]; then
mv clang$EXEEXT clang-$CLANG_MAJOR$EXEEXT
fi
if [ -n "$HOST" ]; then
for exec in clang clang++ gcc g++ ar ranlib nm strings widl; do
ln -sf $HOST-$exec$EXEEXT $exec$EXEEXT
done
for exec in ld objdump windres dlltool objcopy strip; do
ln -sf $HOST-$exec $exec
done
fi
fi