summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNick Wellnhofer <wellnhofer@aevum.de>2023-04-29 20:17:38 +0200
committerNick Wellnhofer <wellnhofer@aevum.de>2023-04-29 20:17:38 +0200
commita8fe4900be5d2971f06917889784f678494a6a13 (patch)
tree56068c3a543b6d416d476fa528809cfda472e321
parent85d4aba426bcb7fabfd5693decaecb9c48614c57 (diff)
downloadlibxml2-a8fe4900be5d2971f06917889784f678494a6a13.tar.gz
autoconf: Only use --undefined-version with version scripts
-rw-r--r--configure.ac9
1 files changed, 4 insertions, 5 deletions
diff --git a/configure.ac b/configure.ac
index c6f627b2..9c9ad572 100644
--- a/configure.ac
+++ b/configure.ac
@@ -455,7 +455,10 @@ if test "$lt_cv_prog_gnu_ld" = yes; then
*-*-cygwin* | *-*-mingw* | *-*-msys* )
;;
*)
- VERSION_SCRIPT_FLAGS=-Wl,--version-script=
+ dnl lld 16 defaults to --no-undefined-version but the version script
+ dnl can contain symbols disabled by configuration options.
+ AX_APPEND_LINK_FLAGS([-Wl,--undefined-version], [VERSION_SCRIPT_FLAGS])
+ AX_APPEND_FLAG([-Wl,--version-script=], [VERSION_SCRIPT_FLAGS])
;;
esac
else
@@ -466,10 +469,6 @@ fi
AC_SUBST(VERSION_SCRIPT_FLAGS)
AM_CONDITIONAL([USE_VERSION_SCRIPT], [test -n "$VERSION_SCRIPT_FLAGS"])
-dnl lld 16 defaults to --no-undefined-version but the version script
-dnl can contain symbols disabled by configuration options.
-AX_APPEND_LINK_FLAGS([-Wl,--undefined-version], [AM_LDFLAGS])
-
dnl
dnl Workaround for native compilers
dnl HP : http://bugs.gnome.org/db/31/3163.html