summaryrefslogtreecommitdiff
path: root/lib/mesa
diff options
context:
space:
mode:
Diffstat (limited to 'lib/mesa')
-rw-r--r--lib/mesa/configure.ac12
1 files changed, 12 insertions, 0 deletions
diff --git a/lib/mesa/configure.ac b/lib/mesa/configure.ac
index e084d0dff..39860d908 100644
--- a/lib/mesa/configure.ac
+++ b/lib/mesa/configure.ac
@@ -464,6 +464,18 @@ AC_LINK_IFELSE(
GC_SECTIONS="";])
LDFLAGS=$save_LDFLAGS
+dnl
+dnl --gc-sections causes ld 2.17 to segfault on ppc
+dnl
+case "$host_os" in
+openbsd*)
+ case "$host_cpu" in
+ powerpc*)
+ GC_SECTIONS="" ;;
+ esac
+ ;;
+esac
+
AC_SUBST([GC_SECTIONS])
dnl