diff options
| author | 2020-01-05 03:39:47 +0100 | |
|---|---|---|
| committer | 2020-01-05 03:39:47 +0100 | |
| commit | 297ae43f9159bd2220c337397a1c7809a8e8de68 (patch) | |
| tree | b456f9fac7e2febe0263865a560fc5cede2eef3f | |
| parent | db4dec661d9a9ae0886fb1cf9a2ffa7be3d34184 (diff) | |
| download | libimobiledevice-297ae43f9159bd2220c337397a1c7809a8e8de68.tar.gz libimobiledevice-297ae43f9159bd2220c337397a1c7809a8e8de68.tar.bz2 | |
win32: Define minimum windows version and use static libgcc
| -rw-r--r-- | configure.ac | 1 | ||||
| -rw-r--r-- | src/Makefile.am | 2 |
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 | |||
| 68 | *mingw32*|*cygwin*) | 68 | *mingw32*|*cygwin*) |
| 69 | AC_MSG_RESULT([${host_os}]) | 69 | AC_MSG_RESULT([${host_os}]) |
| 70 | win32=true | 70 | win32=true |
| 71 | AC_DEFINE(WINVER, 0x0501, [minimum Windows version]) | ||
| 71 | ;; | 72 | ;; |
| 72 | darwin*) | 73 | darwin*) |
| 73 | AC_MSG_RESULT([${host_os}]) | 74 | 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 \ | |||
| 33 | syslog_relay.c syslog_relay.h | 33 | syslog_relay.c syslog_relay.h |
| 34 | 34 | ||
| 35 | if WIN32 | 35 | if WIN32 |
| 36 | libimobiledevice_la_LDFLAGS += -avoid-version | 36 | libimobiledevice_la_LDFLAGS += -avoid-version -static-libgcc |
| 37 | libimobiledevice_la_LIBADD += -lole32 -lws2_32 -lgdi32 | 37 | libimobiledevice_la_LIBADD += -lole32 -lws2_32 -lgdi32 |
| 38 | endif | 38 | endif |
| 39 | 39 | ||
