mirror of
https://github.com/devkitPro/buildscripts.git
synced 2026-03-23 10:34:14 -05:00
add changes for cross compiling 64bit windows toolchains
This commit is contained in:
parent
bddbc05347
commit
2719a32a3c
|
|
@ -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
|
||||
|
||||
|
|
|
|||
3
cross-build-x86_64-w64-mingw32.sh
Executable file
3
cross-build-x86_64-w64-mingw32.sh
Executable file
|
|
@ -0,0 +1,3 @@
|
|||
#!/bin/bash
|
||||
export CROSSBUILD=x86_64-w64-mingw32
|
||||
export PATH=/opt/x86_64-w64-mingw32/bin:$PATH
|
||||
Loading…
Reference in New Issue
Block a user