[Mesa-dev] [PATCH:mesa] Use -z defs instead of --no-undefined on Solaris

Alan Coopersmith alan.coopersmith at oracle.com
Mon Jun 2 18:07:57 PDT 2014


While recent versions of the Solaris linker support --no-undefined,
older ones do not, and even current ones get confused if the Makefile
passes one form and libtool sneaks in the other.

Signed-off-by: Alan Coopersmith <alan.coopersmith at oracle.com>
---
 configure.ac |    2 ++
 1 file changed, 2 insertions(+)

diff --git a/configure.ac b/configure.ac
index 9c64400..29bfbc4 100644
--- a/configure.ac
+++ b/configure.ac
@@ -354,6 +354,8 @@ dnl
 case "$host_os" in
 openbsd* | darwin* )
     LD_NO_UNDEFINED="" ;;
+solaris*)
+    LD_NO_UNDEFINED="-Wl,-z,defs" ;;
 *)
     LD_NO_UNDEFINED="-Wl,--no-undefined" ;;
 esac
-- 
1.7.9.2



More information about the mesa-dev mailing list