[libxslt] Only link libxml2 statically in purely static build



commit 616b2418f7aaf453dac4bd5de5bc59a7ac8584e2
Author: Nick Wellnhofer <wellnhofer aevum de>
Date:   Sun Apr 3 15:20:35 2022 +0200

    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.

 configure.ac | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/configure.ac b/configure.ac
index 81930b00..f86c90a5 100644
--- a/configure.ac
+++ b/configure.ac
@@ -397,7 +397,7 @@ dnl Try pkg-config first if nothing is set
 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`"
         ], [ ])


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]