add changes for cross compiling 64bit windows toolchains

This commit is contained in:
Dave Murphy 2013-01-30 10:55:39 +00:00
parent bddbc05347
commit 2719a32a3c
2 changed files with 20 additions and 1 deletions

View File

@ -157,10 +157,14 @@ if [ "$CROSSBUILD" = "i686-w64-mingw32" ]; then
export PKG_CONFIG_PATH=/opt/i686-w64-mingw32/mingw/lib/pkgconfig
fi
if [ "$CROSSBUILD" = "i686-w64-mingw32" ]; then
export PKG_CONFIG_PATH=/opt/x86_64-w64-mingw32/mingw/lib/pkgconfig
fi
if [ "$BUILD_DKPRO_AUTOMATED" != "1" ] ; then
echo
echo 'Ready to install '$package' in '$INSTALLDIR
echo 'Ready to install '$package' in '$prefix
echo
echo 'press return to continue'
@ -273,6 +277,18 @@ if [ "$CROSSBUILD" = "i686-w64-mingw32" ]; then
$prefix/bin
fi
if [ "$CROSSBUILD" = "x86_64-w64-mingw32" ]; then
if [ $VERSION -ne 3 ]; then
cp -v /opt/x86_64-w64-mingw32/mingw/lib/FreeImage.dll $prefix/bin
fi
if [ $VERSION -eq 1 ]; then
cp -v /opt/x86_64-mingw32/i686-w64-mingw32/bin/libusb-1.0.dll $prefix/bin
fi
cp -v /opt/x86_64-w64-mingw32/mingw/lib/libstdc++-6.dll \
/opt/x86_64-w64-mingw32/mingw/lib/libgcc_s_sjlj-1.dll \
$prefix/bin
fi
echo "stripping installed binaries"
. ./strip_bins.sh

View File

@ -0,0 +1,3 @@
#!/bin/bash
export CROSSBUILD=x86_64-w64-mingw32
export PATH=/opt/x86_64-w64-mingw32/bin:$PATH