diff --git a/CMakeLists.txt b/CMakeLists.txt index 27ddacdc..4495ec6d 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -334,12 +334,12 @@ target_include_directories( if(LIBXML2_WITH_MODULES) if(HAVE_DLOPEN) target_link_libraries(LibXml2 PRIVATE dl) - set(MODULE_PLATFORM_LIBS "-ldl") + set(MODULE_LIBS "-ldl") endif() if(HAVE_SHLLOAD) target_link_libraries(LibXml2 PRIVATE dld) - set(MODULE_PLATFORM_LIBS "-ldld") + set(MODULE_LIBS "-ldld") endif() endif() @@ -635,7 +635,7 @@ if(LIBXML2_WITH_PYTHON) configure_file(python/setup.py.in setup.py @ONLY) endif() -set(NON_PC_LIBS "${THREAD_LIBS} ${ICONV_LIBS} ${LIBM} ${WINSOCK_LIBS} ${CRYPTO_LIBS}") +set(NON_PC_LIBS "${THREAD_LIBS} ${ICONV_LIBS} ${LIBM} ${WINSOCK_LIBS} ${CRYPTO_LIBS} ${MODULE_LIBS}") list(APPEND XML_PC_LIBS "${NON_PC_LIBS}") list(APPEND XML_PRIVATE_LIBS "${NON_PC_LIBS}") list(REMOVE_DUPLICATES XML_PC_LIBS) diff --git a/Makefile.am b/Makefile.am index ddd25d72..a814ef6e 100644 --- a/Makefile.am +++ b/Makefile.am @@ -35,8 +35,7 @@ libxml2_la_CFLAGS = $(AM_CFLAGS) $(XML_PRIVATE_CFLAGS) libxml2_la_LIBADD = $(XML_PRIVATE_LIBS) libxml2_la_LDFLAGS = $(AM_LDFLAGS) -no-undefined \ - -version-info $(LIBXML_VERSION_INFO) \ - $(MODULE_PLATFORM_LIBS) + -version-info $(LIBXML_VERSION_INFO) if USE_VERSION_SCRIPT libxml2_la_LDFLAGS += $(VERSION_SCRIPT_FLAGS)$(srcdir)/libxml2.syms endif diff --git a/configure.ac b/configure.ac index 8cbe9b6e..03627dbd 100644 --- a/configure.ac +++ b/configure.ac @@ -729,13 +729,13 @@ if test "$with_modules" != "no" ; then AC_SEARCH_LIBS([dlopen], [dl], [ WITH_MODULES=1 if test "$ac_cv_search_dlopen" != "none required"; then - MODULE_PLATFORM_LIBS=$ac_cv_search_dlopen + MODULE_LIBS=$ac_cv_search_dlopen fi AC_DEFINE([HAVE_DLOPEN], [], [Have dlopen based dso])], [ AC_SEARCH_LIBS([shl_load], [dld], [ WITH_MODULES=1 if test "$ac_cv_search_shl_load" != "none required"; then - MODULE_PLATFORM_LIBS=$ac_cv_search_shl_load + MODULE_LIBS=$ac_cv_search_shl_load fi AC_DEFINE([HAVE_SHLLOAD], [], [Have shl_load based dso])])]) LIBS=$_libs @@ -747,7 +747,6 @@ if test "$with_modules" != "no" ; then fi AC_SUBST(WITH_MODULES) -AC_SUBST(MODULE_PLATFORM_LIBS) AC_SUBST(MODULE_EXTENSION) AM_CONDITIONAL(WITH_MODULES_SOURCES, test "$WITH_MODULES" = "1") @@ -1101,7 +1100,7 @@ case "$host" in esac XML_LIBS="-lxml2" -NON_PC_LIBS="${THREAD_LIBS} ${ICONV_LIBS} ${LIBM} ${NET_LIBS} ${CRYPTO_LIBS}" +NON_PC_LIBS="${THREAD_LIBS} ${ICONV_LIBS} ${LIBM} ${NET_LIBS} ${CRYPTO_LIBS} ${MODULE_LIBS}" XML_PC_LIBS="${XML_PC_LIBS} ${NON_PC_LIBS}" XML_PRIVATE_LIBS="${XML_PRIVATE_LIBS} ${NON_PC_LIBS}" XML_PRIVATE_CFLAGS="${XML_PRIVATE_CFLAGS} ${ICONV_CFLAGS}" diff --git a/xml2-config.in b/xml2-config.in index 316fb303..3d3f666a 100644 --- a/xml2-config.in +++ b/xml2-config.in @@ -86,7 +86,7 @@ while test $# -gt 0; do shift libs="@XML_LIBS@ @XML_PRIVATE_LIBS_NO_SHARED@" else - libs="@XML_LIBS@ @XML_PRIVATE_LIBS@ @MODULE_PLATFORM_LIBS@ @LIBS@" + libs="@XML_LIBS@ @XML_PRIVATE_LIBS@ @LIBS@" fi if [ "@XML_LIBDIR@" != "-L/usr/lib" -a "@XML_LIBDIR@" != "-L/usr/lib64" ]; then