diff options
Diffstat (limited to 'vcpkg/ports/libimobiledevice/002_fix_static_build.patch')
| -rw-r--r-- | vcpkg/ports/libimobiledevice/002_fix_static_build.patch | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/vcpkg/ports/libimobiledevice/002_fix_static_build.patch b/vcpkg/ports/libimobiledevice/002_fix_static_build.patch new file mode 100644 index 0000000..3ea317b --- /dev/null +++ b/vcpkg/ports/libimobiledevice/002_fix_static_build.patch @@ -0,0 +1,22 @@ +diff --git a/src/idevice.c b/src/idevice.c +index 719cd28..0ae8a1c 100644 +--- a/src/idevice.c ++++ b/src/idevice.c +@@ -124,6 +124,8 @@ static void id_function(CRYPTO_THREADID *thread) + #endif + #endif /* HAVE_OPENSSL */ + ++#ifndef LIBIMOBILEDEVICE_STATIC // disable dll constructor ++ + static void internal_idevice_init(void) + { + #if defined(HAVE_OPENSSL) +@@ -219,6 +221,8 @@ BOOL WINAPI DllMain(HINSTANCE hModule, DWORD dwReason, LPVOID lpReserved) + #warning No compiler support for constructor/destructor attributes, some features might not be available. + #endif + ++#endif // disable dll constructor ++ + struct idevice_subscription_context { + idevice_event_cb_t callback; + void *user_data; |