[libxslt] autotools: Link with -no-undefined
- From: Nick Wellnhofer <nwellnhof src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [libxslt] autotools: Link with -no-undefined
- Date: Tue, 6 Sep 2022 20:58:34 +0000 (UTC)
commit b3a5793a0d614cf08123aa969c9616071a7e727e
Author: Nick Wellnhofer <wellnhofer aevum de>
Date: Tue Sep 6 13:51:21 2022 +0200
autotools: Link with -no-undefined
This catches errors earlier.
libexslt/Makefile.am | 3 ++-
libxslt/Makefile.am | 1 +
tests/plugins/Makefile.am | 4 +++-
3 files changed, 6 insertions(+), 2 deletions(-)
---
diff --git a/libexslt/Makefile.am b/libexslt/Makefile.am
index c2dc6364..064fca05 100644
--- a/libexslt/Makefile.am
+++ b/libexslt/Makefile.am
@@ -28,7 +28,8 @@ libexslt_la_SOURCES = \
dynamic.c
libexslt_la_LIBADD = $(top_builddir)/libxslt/libxslt.la $(LIBXML_LIBS) $(EXTRA_LIBS) $(LIBGCRYPT_LIBS)
$(LIBM)
-libexslt_la_LDFLAGS = -version-info $(LIBEXSLT_VERSION_INFO)
+libexslt_la_LDFLAGS = $(AM_LDFLAGS) -no-undefined \
+ -version-info $(LIBEXSLT_VERSION_INFO)
man_MANS = libexslt.3
diff --git a/libxslt/Makefile.am b/libxslt/Makefile.am
index 9560dc3b..eeda05b8 100644
--- a/libxslt/Makefile.am
+++ b/libxslt/Makefile.am
@@ -61,6 +61,7 @@ endif
libxslt_la_LIBADD = $(LIBXML_LIBS) $(EXTRA_LIBS) $(LIBM)
libxslt_la_LDFLAGS = \
+ $(AM_LDFLAGS) -no-undefined \
$(LIBXSLT_VERSION_SCRIPT) \
-version-info $(LIBXSLT_VERSION_INFO)
diff --git a/tests/plugins/Makefile.am b/tests/plugins/Makefile.am
index 70f688bc..50fb20ac 100644
--- a/tests/plugins/Makefile.am
+++ b/tests/plugins/Makefile.am
@@ -21,7 +21,9 @@ plugindir = $(abs_builddir)/.libs
xmlsoft_org_xslt_testplugin_la_CFLAGS = -DMODULE_COMPILE $(LIBXML_CFLAGS) $(LIBXSLT_CFLAGS)
xmlsoft_org_xslt_testplugin_la_SOURCES = testplugin.c
xmlsoft_org_xslt_testplugin_la_LIBADD = $(top_builddir)/libxslt/libxslt.la $(EXTRA_LIBS)
-xmlsoft_org_xslt_testplugin_la_LDFLAGS = -module -avoid-version -rpath $(plugindir)
+xmlsoft_org_xslt_testplugin_la_LDFLAGS = \
+ $(AM_LDFLAGS) -no-undefined \
+ -module -avoid-version -rpath $(plugindir)
test-logall:
@echo '## Running plugin tests'
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]