# HG changeset patch # User Nick Wellnhofer <wellnhofer@aevum.de> # Date 1648992035 -7200 # Sun Apr 03 15:20:35 2022 +0200 # Node ID a117621eee46c2f4fa3e3983c590850f8e73967b # Parent f3f2f37a847a54ef581dd0b4cad636239c438c29 Only link libxml2 statically in purely static build We now link libxml2 dynamically if both shared and static builds were requested. This avoids overlinking and should fix #36. diff --git a/configure.ac b/configure.ac --- a/configure.ac +++ b/configure.ac @@ -397,7 +397,7 @@ dnl if test "x$LIBXML_CONFIG_PREFIX" = "x" -a "x$LIBXML_LIBS" = "x"; then - if test "$build_static_libs" = "no"; then + if test "$build_shared_libs" = "yes"; then PKG_CHECK_MODULES([LIBXML], [libxml-2.0 >= $LIBXML_REQUIRED_VERSION], [ WITH_MODULES="`$PKG_CONFIG --variable=modules libxml-2.0`" ], [ ])