mirror of
https://gitlab.gnome.org/GNOME/libxml2.git
synced 2024-12-25 23:21:26 +03:00
autotools: Move MODULE_PLATFORM_LIBS into NON_PC_LIBS
This commit is contained in:
parent
29bf09ec44
commit
4c1b88513f
@ -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)
|
||||
|
@ -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
|
||||
|
@ -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}"
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user