summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWerner Koch <wk@gnupg.org>2012-11-05 19:21:51 +0100
committerWerner Koch <wk@gnupg.org>2013-03-18 16:15:53 +0100
commita41462c30934a64c337979f57497d597fd86216b (patch)
tree68c84d1dc40cdf2124576a1173897d21231ccbf9
parent52ba311f778f026a175c5a13ec23b6acf271f883 (diff)
downloadlibgcrypt-a41462c30934a64c337979f57497d597fd86216b.tar.gz
Allow building with w64-mingw32
* autogen.sh <--build-w32>: Support the w64-mingw32 toolchain. Also prepare for 64 bit building. <git-setup>: Remove option -c from chmod.
-rwxr-xr-xautogen.sh12
1 files changed, 11 insertions, 1 deletions
diff --git a/autogen.sh b/autogen.sh
index 92cc0d64..841c2c2d 100755
--- a/autogen.sh
+++ b/autogen.sh
@@ -65,6 +65,10 @@ case "$1" in
myhost="w32"
myhostsub="ce"
;;
+ --build-w64)
+ myhost="w32"
+ myhostsub="64"
+ ;;
--build-amd64)
myhost="amd64"
;;
@@ -95,9 +99,15 @@ if [ "$myhost" = "w32" ]; then
[ -z "$w32root" ] && w32root="$HOME/w32ce_root"
toolprefixes="arm-mingw32ce"
;;
+ 64)
+ w32root="$w64root"
+ [ -z "$w32root" ] && w32root="$HOME/w64root"
+ toolprefixes="$amd64_toolprefixes amd64-mingw32msvc"
+ ;;
*)
[ -z "$w32root" ] && w32root="$HOME/w32root"
- toolprefixes="i586-mingw32msvc i386-mingw32msvc"
+ toolprefixes="$w32_toolprefixes i686-w64-mingw32 i586-mingw32msvc"
+ toolprefixes="$toolprefixes i386-mingw32msvc mingw32"
;;
esac
echo "Using $w32root as standard install directory" >&2