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