mirror of
https://gitlab.gnome.org/GNOME/libxml2
synced 2025-03-28 21:33:13 +00:00
autoconf: Only use --undefined-version with version scripts
This commit is contained in:
parent
85d4aba426
commit
a8fe4900be
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user