diff configure.ac @ 5604:e9f58d024c3c

Disable ASLR on Mac OS X Lion. 2011-11-27 Marcus Crestani <crestani@informatik.uni-tuebingen.de> * configure.ac: Add "-Wl,-no_pie" to linker flags on Mac OS X Lion to disable ASLR that breaks pdump. * configure: Regenerate.
author Marcus Crestani <crestani@informatik.uni-tuebingen.de>
date Tue, 29 Nov 2011 16:19:53 +0100
parents 3e5d5e8e4bb7
children bc51e191aaea
line wrap: on
line diff
--- a/configure.ac	Tue Nov 29 09:05:36 2011 -0500
+++ b/configure.ac	Tue Nov 29 16:19:53 2011 +0100
@@ -2786,6 +2786,17 @@
   fi
 fi
 
+dnl Disable ASLR on systems where it breaks pdump.
+AC_MSG_CHECKING([whether ASLR needs to be disabled]) 
+case `uname -s`:`uname -r` in
+	dnl Mac OS X 10.7 Lion
+    Darwin:11.*)
+	AC_MSG_RESULT(yes)
+	XE_APPEND([-Wl,-no_pie], LDFLAGS) 
+	;;
+    *) AC_MSG_RESULT(no) ;;
+esac
+
 dnl ----------------------
 dnl Choose a window system
 dnl ----------------------