summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Nikias Bassen2020-01-05 03:39:47 +0100
committerGravatar Nikias Bassen2020-01-05 03:39:47 +0100
commit297ae43f9159bd2220c337397a1c7809a8e8de68 (patch)
treeb456f9fac7e2febe0263865a560fc5cede2eef3f
parentdb4dec661d9a9ae0886fb1cf9a2ffa7be3d34184 (diff)
downloadlibimobiledevice-297ae43f9159bd2220c337397a1c7809a8e8de68.tar.gz
libimobiledevice-297ae43f9159bd2220c337397a1c7809a8e8de68.tar.bz2
win32: Define minimum windows version and use static libgcc
-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