[libxml2] Always link with -no-undefined
- From: Nick Wellnhofer <nwellnhof src gnome org>
 
- To: commits-list gnome org
 
- Cc: 
 
- Subject: [libxml2] Always link with -no-undefined
 
- Date: Fri,  2 Sep 2022 16:52:04 +0000 (UTC)
 
commit c59df16d1dec57c55c775a5b631445339f749282
Author: Nick Wellnhofer <wellnhofer aevum de>
Date:   Fri Sep 2 17:00:05 2022 +0200
    Always link with -no-undefined
    
    This is a good idea to detect errors early.
 Makefile.am  | 2 +-
 configure.ac | 2 --
 2 files changed, 1 insertion(+), 3 deletions(-)
---
diff --git a/Makefile.am b/Makefile.am
index 69784fe7..22e5856c 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -32,7 +32,7 @@ lib_LTLIBRARIES = libxml2.la
 libxml2_la_CFLAGS = $(AM_CFLAGS) $(XML_PRIVATE_CFLAGS)
 libxml2_la_LIBADD = $(XML_PRIVATE_LIBS)
 
-libxml2_la_LDFLAGS = $(AM_LDFLAGS) \
+libxml2_la_LDFLAGS = $(AM_LDFLAGS) -no-undefined \
                     -version-info $(LIBXML_VERSION_INFO) \
                     $(MODULE_PLATFORM_LIBS)
 if USE_VERSION_SCRIPT
diff --git a/configure.ac b/configure.ac
index efd164eb..7dbef1b9 100644
--- a/configure.ac
+++ b/configure.ac
@@ -532,7 +532,6 @@ case "$host" in
  if test "$with_http" != "no" || test "$with_ftp" != "no"; then
    WINSOCK_LIBS="-lws2_32"
  fi
- AM_LDFLAGS="$AM_LDFLAGS -no-undefined"
  if test "${PYTHON}" != ""
  then
    case "$host" in
@@ -546,7 +545,6 @@ case "$host" in
  fi
  ;;
  *-*-cygwin*)
- AM_LDFLAGS="$AM_LDFLAGS -no-undefined"
  if test "${PYTHON}" != ""
  then
    EXTRA_PYTHON_LIBADD="-L/usr/lib/python${PYTHON_VERSION}/config -lpython${PYTHON_VERSION}"
[
Date Prev][
Date Next]   [
Thread Prev][
Thread Next]   
[
Thread Index]
[
Date Index]
[
Author Index]