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