summaryrefslogtreecommitdiff
path: root/configure.ac
diff options
context:
space:
mode:
Diffstat (limited to 'configure.ac')
-rw-r--r--configure.ac4
1 files changed, 4 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac
index 6edfec7a..c6f627b2 100644
--- a/configure.ac
+++ b/configure.ac
@@ -466,6 +466,10 @@ 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