diff --git a/build-cross-tools.sh b/build-cross-tools.sh index 6a3a41c..5ed2915 100755 --- a/build-cross-tools.sh +++ b/build-cross-tools.sh @@ -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 diff --git a/install-wrappers.sh b/install-wrappers.sh index 8dcedef..4c15cab 100755 --- a/install-wrappers.sh +++ b/install-wrappers.sh @@ -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