diff options
author | Werner Koch <wk@gnupg.org> | 2012-11-05 19:21:51 +0100 |
---|---|---|
committer | Werner Koch <wk@gnupg.org> | 2012-11-05 19:21:51 +0100 |
commit | 4f6fb150558d0ed250bfbd50352c258a4456ba50 (patch) | |
tree | 5f42dda3bb6e31145c4fca34c6c6b60e6ebee573 /autogen.sh | |
parent | 7d5195be76d9dd4adc28976ad153e8f7761c5855 (diff) | |
download | libgcrypt-4f6fb150558d0ed250bfbd50352c258a4456ba50.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.
Diffstat (limited to 'autogen.sh')
-rwxr-xr-x | autogen.sh | 12 |
1 files changed, 11 insertions, 1 deletions
@@ -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-mingw32msvc" + ;; *) [ -z "$w32root" ] && w32root="$HOME/w32root" toolprefixes="i586-mingw32msvc i386-mingw32msvc" + toolprefixes="i586-mingw32msvc i386-mingw32msvc i686-w64-mingw32" ;; esac echo "Using $w32root as standard install directory" >&2 @@ -250,7 +260,7 @@ if [ -d .git ]; then and .git/hooks/pre-commit.sample out of the way. EOF cp -av .git/hooks/pre-commit.sample .git/hooks/pre-commit - chmod -c +x .git/hooks/pre-commit + chmod +x .git/hooks/pre-commit fi fi |