Make windres output in res format instead of in coff

This makes the output architecture independent, allowing
the x86_64 GNU binutils binary to be used for other
architectures as well, including arm/arm64 which aren't supported
by binutils.
This commit is contained in:
Martin Storsjö committed 2018-01-10 10:53:02 +02:00
1 parent 41985ce12e
commit 583baaa612
4 files changed
+14 -3

No files matched your search

+2 -2
View File
@@ -11,7 +11,7 @@ PREFIX="$1"
: ${ARCHS:=${TOOLCHAIN_ARCHS-i686 x86_64 armv7 aarch64}}
mkdir -p $PREFIX/bin
cp wrappers/clang-target-wrapper.sh wrappers/objdump-wrapper.sh wrappers/ld-wrapper.sh $PREFIX/bin
cp wrappers/clang-target-wrapper.sh wrappers/objdump-wrapper.sh wrappers/ld-wrapper.sh wrappers/windres-wrapper.sh $PREFIX/bin
cd $PREFIX/bin
for arch in $ARCHS; do
for exec in clang clang++ gcc g++; do
@@ -23,7 +23,7 @@ for arch in $ARCHS; do
for exec in strip; do
ln -sf /bin/true $arch-w64-mingw32-$exec
done
for exec in ld objdump; do
for exec in ld objdump windres; do
ln -sf $exec-wrapper.sh $arch-w64-mingw32-$exec
done
done