aboutsummaryrefslogtreecommitdiff
path: root/vcpkg/ports/libimobiledevice-glue/003_fix_static_build.patch
diff options
context:
space:
mode:
Diffstat (limited to 'vcpkg/ports/libimobiledevice-glue/003_fix_static_build.patch')
-rw-r--r--vcpkg/ports/libimobiledevice-glue/003_fix_static_build.patch19
1 files changed, 19 insertions, 0 deletions
diff --git a/vcpkg/ports/libimobiledevice-glue/003_fix_static_build.patch b/vcpkg/ports/libimobiledevice-glue/003_fix_static_build.patch
new file mode 100644
index 0000000..4e587cf
--- /dev/null
+++ b/vcpkg/ports/libimobiledevice-glue/003_fix_static_build.patch
@@ -0,0 +1,19 @@
+diff --git a/src/glue.c b/src/glue.c
+index 7970679..bad3269 100644
+--- a/src/glue.c
++++ b/src/glue.c
+@@ -29,6 +29,8 @@
+ #include "common.h"
+ #include "libimobiledevice-glue/thread.h"
+
++#ifndef LIBIMOBILEDEVICEGLUE_STATIC // disable dll constructor
++
+ extern void term_colors_init();
+
+ static void internal_glue_init(void)
+@@ -78,3 +80,5 @@ BOOL WINAPI DllMain(HINSTANCE hModule, DWORD dwReason, LPVOID lpReserved)
+ #else
+ #warning No compiler support for constructor/destructor attributes, some features might not be available.
+ #endif
++
++#endif // disable dll constructor