]> granicus.if.org Git - pgbouncer/commitdiff
configurable arch for mingw build
authorMarko Kreen <markokr@gmail.com>
Wed, 9 Jan 2013 10:28:31 +0000 (12:28 +0200)
committerMarko Kreen <markokr@gmail.com>
Wed, 20 Feb 2013 21:22:51 +0000 (23:22 +0200)
Makefile

index a503148b2d16be9340d09e585e2d3f8fbcc8c34d..81947a6f875e51b0482d39f38f01c77ba1865423 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -121,15 +121,16 @@ config.mak:
 deb:
        debuild -b -us -uc
 
+w32arch = i686-w64-mingw32
 w32zip = pgbouncer-$(PACKAGE_VERSION)-win32.zip
 zip: configure clean
        rm -rf buildexe
        mkdir buildexe
        cd buildexe \
-               && ../configure --host=i586-mingw32msvc --disable-debug \
+               && ../configure --host=$(w32arch) --disable-debug \
                        --with-libevent=/opt/apps/win32 --enable-evdns \
                && make \
-               && i586-mingw32msvc-strip pgbouncer.exe pgbevent.dll \
+               && $(warch)-strip pgbouncer.exe pgbevent.dll \
                && zip pgbouncer.zip pgbouncer.exe pgbevent.dll doc/*.html
        zip -l buildexe/pgbouncer.zip etc/pgbouncer.ini etc/userlist.txt
        mv buildexe/pgbouncer.zip $(w32zip)