From cf6cd81c3ef115bc87759ed7f9d9a4fd436c18bf Mon Sep 17 00:00:00 2001 From: Nick Wellnhofer Date: Sun, 3 Apr 2022 02:18:25 +0200 Subject: [PATCH] Add WIN32_EXTRA_LIBADD to XML_PRIVATE_LIBS --- CMakeLists.txt | 2 +- configure.ac | 2 +- libxml-2.0.pc.in | 2 +- xml2-config.in | 2 -- 4 files changed, 3 insertions(+), 5 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 7cd70bc8..fb384545 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -650,7 +650,7 @@ endif() set(XML_INCLUDEDIR "-I\${includedir}/libxml2") set(XML_LIBDIR "-L\${libdir}") set(XML_LIBS "-lxml2") -set(XML_PRIVATE_LIBS "${Z_LIBS} ${LZMA_LIBS} ${THREAD_LIBS} ${ICONV_LIBS} ${ICU_LIBS} ${LIBM}") +set(XML_PRIVATE_LIBS "${Z_LIBS} ${LZMA_LIBS} ${THREAD_LIBS} ${ICONV_LIBS} ${ICU_LIBS} ${LIBM} ${WIN32_EXTRA_LIBADD}") file(RELATIVE_PATH PACKAGE_RELATIVE_PATH "${CMAKE_INSTALL_FULL_LIBDIR}/pkgconfig" "${CMAKE_INSTALL_PREFIX}") string(REGEX REPLACE "/$" "" PACKAGE_RELATIVE_PATH "${PACKAGE_RELATIVE_PATH}") diff --git a/configure.ac b/configure.ac index 2acc38ce..ea8e9f0d 100644 --- a/configure.ac +++ b/configure.ac @@ -1311,7 +1311,7 @@ else fi fi XML_LIBS="-lxml2" -XML_PRIVATE_LIBS="$Z_LIBS $LZMA_LIBS $THREAD_LIBS $ICONV_LIBS $ICU_LIBS $LIBM $LIBS" +XML_PRIVATE_LIBS="$Z_LIBS $LZMA_LIBS $THREAD_LIBS $ICONV_LIBS $ICU_LIBS $LIBM $WIN32_EXTRA_LIBADD $LIBS" XML_LIBTOOLLIBS="libxml2.la" AC_SUBST(WITH_ICU) diff --git a/libxml-2.0.pc.in b/libxml-2.0.pc.in index c3d931ec..88e3963b 100644 --- a/libxml-2.0.pc.in +++ b/libxml-2.0.pc.in @@ -9,5 +9,5 @@ Version: @VERSION@ Description: libXML library version2. Requires: Libs: -L${libdir} @XML_LIBS@ -Libs.private: @XML_PRIVATE_LIBS@ @WIN32_EXTRA_LIBADD@ @LIBS@ +Libs.private: @XML_PRIVATE_LIBS@ @LIBS@ Cflags: @XML_INCLUDEDIR@ @XML_CFLAGS@ diff --git a/xml2-config.in b/xml2-config.in index 5863ffa0..099e2409 100644 --- a/xml2-config.in +++ b/xml2-config.in @@ -92,8 +92,6 @@ while test $# -gt 0; do if [ "@XML_LIBDIR@" != "-L/usr/lib" -a "@XML_LIBDIR@" != "-L/usr/lib64" ]; then libs="@XML_LIBDIR@ $libs" fi - - libs="$libs @WIN32_EXTRA_LIBADD@" ;; *)