summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--configure.ac1
-rw-r--r--src/Makefile.am2
2 files changed, 2 insertions, 1 deletions
diff --git a/configure.ac b/configure.ac
index aaa1fd7..4342f5c 100644
--- a/configure.ac
+++ b/configure.ac
@@ -68,6 +68,7 @@ case ${host_os} in
*mingw32*|*cygwin*)
AC_MSG_RESULT([${host_os}])
win32=true
+ AC_DEFINE(WINVER, 0x0501, [minimum Windows version])
;;
darwin*)
AC_MSG_RESULT([${host_os}])
diff --git a/src/Makefile.am b/src/Makefile.am
index 5fcf097..75c6dfe 100644
--- a/src/Makefile.am
+++ b/src/Makefile.am
@@ -33,7 +33,7 @@ libimobiledevice_la_SOURCES = idevice.c idevice.h \
syslog_relay.c syslog_relay.h
if WIN32
-libimobiledevice_la_LDFLAGS += -avoid-version
+libimobiledevice_la_LDFLAGS += -avoid-version -static-libgcc
libimobiledevice_la_LIBADD += -lole32 -lws2_32 -lgdi32
endif