summaryrefslogtreecommitdiff
path: root/cross-make-mingw64.sh
diff options
context:
space:
mode:
Diffstat (limited to 'cross-make-mingw64.sh')
-rwxr-xr-xcross-make-mingw64.sh16
1 files changed, 11 insertions, 5 deletions
diff --git a/cross-make-mingw64.sh b/cross-make-mingw64.sh
index 5a05a81a..5ea627ea 100755
--- a/cross-make-mingw64.sh
+++ b/cross-make-mingw64.sh
@@ -1,10 +1,16 @@
#!/bin/sh
-export CC=amd64-mingw32msvc-gcc
-export WINDRES=amd64-mingw32msvc-windres
-export PLATFORM=mingw32
-if [ !$ARCH ]
+if [ !$CC ]
then
-export ARCH=x86_64
+ export CC=amd64-mingw32msvc-gcc
+fi
+
+if [ !$WINDRES ]
+then
+ export WINDRES=amd64-mingw32msvc-windres
fi
+
+export PLATFORM=mingw32
+export ARCH=x86_64
+
exec make $*