diff options
author | Alan Fitton <ajf@eth0.org.uk> | 2011-09-13 21:16:01 +0000 |
---|---|---|
committer | Alan Fitton <ajf@eth0.org.uk> | 2011-09-13 21:16:01 +0000 |
commit | 029ff09052d4301d5dd5a87b719c86c1a346a721 (patch) | |
tree | 41ecceda71791652f9add123790947a4b5f25ea0 | |
parent | 53ca28eb754d1a94a0220810f9a2bd37598ef18b (diff) |
some win32 compiler flags
-rw-r--r-- | configure.ac | 7 | ||||
-rw-r--r-- | src/Makefile.am | 5 |
2 files changed, 12 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac index 32a8ef5..f4103a5 100644 --- a/configure.ac +++ b/configure.ac @@ -1,5 +1,12 @@ AC_PREREQ(2.63) +case "${host}" in + i[[3456789]]86-mingw32*) WIN32="yes" ;; + *cygwin*) WIN32="yes" ;; + *) WIN32="no" ;; +esac +AM_CONDITIONAL([WIN32], test "$WIN32" = "yes") + AC_INIT(transmission-remote-gtk, 0.6, alan@eth0.org.uk) AC_CONFIG_SRCDIR(src) AM_INIT_AUTOMAKE(AC_PACKAGE_NAME, AC_PACKAGE_VERSION) diff --git a/src/Makefile.am b/src/Makefile.am index e626f90..5e86833 100644 --- a/src/Makefile.am +++ b/src/Makefile.am @@ -13,6 +13,11 @@ public_icons = \ hicolor_apps_32x32_transmission-remote-gtk.png \ $(NULL) +if WIN32 +AM_CFLAGS = -mms-bitfields +AM_LDFLAGS = -Wl,-subsystem,windows +endif + EXTRA_DIST = transmission-remote-gtk.desktop.in CLEANFILES = transmission-remote-gtk.desktop |