Mesa (master): configure: correctly set LD_NO_UNDEFINED
Emil Velikov
evelikov at kemper.freedesktop.org
Wed May 14 22:44:03 UTC 2014
Module: Mesa
Branch: master
Commit: f57d092199318f03f6522d0ca616f1f8220b2e6e
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=f57d092199318f03f6522d0ca616f1f8220b2e6e
Author: Emil Velikov <emil.l.velikov at gmail.com>
Date: Tue May 13 01:33:48 2014 +0100
configure: correctly set LD_NO_UNDEFINED
Commit 11623be934f85 was meant to have this hunk, which
I accidently dropped during git rebase.
Cc: 10.2 <mesa-stable at lists.freedesktop.org>
Signed-off-by: Emil Velikov <emil.l.velikov at gmail.com>
Reviewed-by: Julien Cristau <jcristau at debian.org>
Reviewed-by: Matt Turner <mattst88 at gmail.com>
Reviewed-by: Jonathan Gray <jsg at jsg.id.au>
---
configure.ac | 13 +++++++++++++
1 file changed, 13 insertions(+)
diff --git a/configure.ac b/configure.ac
index b4a1606..d3e96de 100644
--- a/configure.ac
+++ b/configure.ac
@@ -332,6 +332,19 @@ LDFLAGS=$save_LDFLAGS
AC_SUBST([GC_SECTIONS])
dnl
+dnl OpenBSD does not have DT_NEEDED entries for libc by design
+dnl so when these flags are passed to ld via libtool the checks will fail
+dnl
+case "$host_os" in
+openbsd*)
+ LD_NO_UNDEFINED="" ;;
+*)
+ LD_NO_UNDEFINED="-Wl,--no-undefined" ;;
+esac
+
+AC_SUBST([LD_NO_UNDEFINED])
+
+dnl
dnl compatibility symlinks
dnl
case "$host_os" in
More information about the mesa-commit
mailing list