From: Emil Velikov Date: Tue, 13 May 2014 00:33:48 +0000 (+0100) Subject: configure: correctly set LD_NO_UNDEFINED X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=f57d092199318f03f6522d0ca616f1f8220b2e6e;p=mesa.git configure: correctly set LD_NO_UNDEFINED Commit 11623be934f85 was meant to have this hunk, which I accidently dropped during git rebase. Cc: 10.2 Signed-off-by: Emil Velikov Reviewed-by: Julien Cristau Reviewed-by: Matt Turner Reviewed-by: Jonathan Gray --- diff --git a/configure.ac b/configure.ac index b4a16060fd0..d3e96de976b 100644 --- a/configure.ac +++ b/configure.ac @@ -331,6 +331,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