Module: Mesa
Branch: master
Commit: 5dd927bbfc36c8176536bb66a58467f97a1a3be3
URL:    
http://cgit.freedesktop.org/mesa/mesa/commit/?id=5dd927bbfc36c8176536bb66a58467f97a1a3be3

Author: Vinson Lee <[email protected]>
Date:   Wed May 21 22:13:13 2014 -0700

configure.ac: Do not enable -Wl,--no-undefined on Mac OS X.

This patch fixes this build error on Mac OS X.

  CCLD     libglapi.la
clang: warning: argument unused during compilation: '-pthread'
clang: warning: argument unused during compilation: '-pthread'
ld: unknown option: --no-undefined
clang: error: linker command failed with exit code 1 (use -v to see invocation)

Signed-off-by: Vinson Lee <[email protected]>

---

 configure.ac |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/configure.ac b/configure.ac
index b6e8049..76d1333 100644
--- a/configure.ac
+++ b/configure.ac
@@ -336,7 +336,7 @@ 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*)
+openbsd* | darwin* )
     LD_NO_UNDEFINED="" ;;
 *)
     LD_NO_UNDEFINED="-Wl,--no-undefined" ;;

_______________________________________________
mesa-commit mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/mesa-commit

Reply via email to