aboutsummaryrefslogtreecommitdiff
path: root/vcpkg/ports/libplist/001_fix_static_build.patch
blob: 1df32997d984703cdb6a24bdf04b3937700b0160 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
diff --git a/src/plist.c b/src/plist.c
index a33a6fb..1dda4d7 100644
--- a/src/plist.c
+++ b/src/plist.c
@@ -132,6 +132,8 @@ static int plist_debug = 0;
         static void f(void)
 #endif
 
+#ifndef LIBPLIST_STATIC  // disable dll constructor
+
 extern void plist_xml_init(void);
 extern void plist_xml_deinit(void);
 extern void plist_bin_init(void);
@@ -158,6 +160,8 @@ INITIALIZER(internal_plist_init)
     atexit(internal_plist_deinit);
 }
 
+#endif  // disable dll constructor
+
 #ifndef HAVE_MEMMEM
 // see https://sourceware.org/legacy-ml/libc-alpha/2007-12/msg00000.html