aboutsummaryrefslogtreecommitdiff
path: root/vcpkg/ports/libimobiledevice/002_fix_static_build.patch
diff options
context:
space:
mode:
authorEthan Morgan <ethan@gweithio.com>2026-02-14 16:44:06 +0000
committerEthan Morgan <ethan@gweithio.com>2026-02-14 16:44:06 +0000
commit54409423f767d8b1cf30cb7d0efca6b4ca138823 (patch)
treed915ac7828703ce4b963efdd9728a1777ba18c1e /vcpkg/ports/libimobiledevice/002_fix_static_build.patch
move to own git serverHEADmaster
Diffstat (limited to 'vcpkg/ports/libimobiledevice/002_fix_static_build.patch')
-rw-r--r--vcpkg/ports/libimobiledevice/002_fix_static_build.patch22
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;