Use XML_PRIVATE_LIBS in libxml2_la_LIBADD

After this change, variables Z_LIBS, LZMA_LIBS, ICU_LIBS, ICONV_LIBS
and WIN32_EXTRA_LIBADD are unused outside of configure.ac. We keep
exporting them with AC_SUBST for now.
This commit is contained in:
Nick Wellnhofer 2022-04-03 02:20:04 +02:00
parent 5cae1a14ee
commit a340d8b10c

View File

@ -24,7 +24,7 @@ bin_SCRIPTS=xml2-config
lib_LTLIBRARIES = libxml2.la
libxml2_la_CFLAGS = $(EXTRA_CFLAGS) $(THREAD_CFLAGS) $(Z_CFLAGS) $(LZMA_CFLAGS)
libxml2_la_LIBADD = $(ICU_LIBS) $(THREAD_LIBS) $(Z_LIBS) $(LZMA_LIBS) $(ICONV_LIBS) $(LIBM) $(WIN32_EXTRA_LIBADD)
libxml2_la_LIBADD = $(XML_PRIVATE_LIBS)
if USE_VERSION_SCRIPT
LIBXML2_VERSION_SCRIPT = $(VERSION_SCRIPT_FLAGS)$(srcdir)/libxml2.syms