From: Marko Kreen Date: Wed, 9 Jan 2013 10:28:31 +0000 (+0200) Subject: configurable arch for mingw build X-Git-Tag: pgbouncer_1_6_rc1~44 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=2fbeb0d3161849bb027f104dc7b8fbc6f9f5c1e6;p=pgbouncer configurable arch for mingw build --- diff --git a/Makefile b/Makefile index a503148..81947a6 100644 --- 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)