diff options
Diffstat (limited to 'vcpkg/ports/libplist/001_fix_static_build.patch')
| -rw-r--r-- | vcpkg/ports/libplist/001_fix_static_build.patch | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/vcpkg/ports/libplist/001_fix_static_build.patch b/vcpkg/ports/libplist/001_fix_static_build.patch new file mode 100644 index 0000000..1df3299 --- /dev/null +++ b/vcpkg/ports/libplist/001_fix_static_build.patch @@ -0,0 +1,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 + |