Dr. Robert Delius Royar PhD writes:
First, this message helped me build successfully. I already had tip.
However, configure needs to be patched so that
XE_APPEND([-Wl,-no_pie], LDFLAGS) is set for Mountain Lion as well
as Lion.
Would you try the appended patch? (You only need to run autoconf and
configure and see if the linker flags are set correctly; you don't
need to do a full build.) I'm not an expert on configure.ac code
either, but it should work and it is a bit cleaner. I don't have a
recent Mac OS X to try it on, unfortunately. Also check the credit in
the log message; I can delete email and/or the whole thing on request,
but credit where credit is due is important to us.
Currently it is set only for Darwin 11, not for 12. I am not
competent with editing autoconf scripts, but I have included a
patch to configure.ac and ChangeLog and attached a regenerated
configure.
Don't bother with the regenerated configure. The attachment will
probably get scrubbed, and anybody who will try patches posted to the
list almost surely knows how to regenerate configure.
diff -r 0df3cedee9ac ChangeLog
--- a/ChangeLog Fri Mar 02 18:26:14 2012 +0000
+++ b/ChangeLog Sat Jul 28 01:18:23 2012 +0900
@@ -0,0 +1,9 @@
+2012-07-28 Stephen J. Turnbull <stephen(a)xemacs.org>
+
+ Thanks to Robert Delius Royar <xemacs(a)frinabulax.org>.
+
+ * configure.ac (ASLR): Disable it on Mountain Lion, too.
+
diff -r 0df3cedee9ac configure.ac
--- a/configure.ac Fri Mar 02 18:26:14 2012 +0000
+++ b/configure.ac Sat Jul 28 01:18:23 2012 +0900
@@ -2789,8 +2789,8 @@
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.*)
+ dnl Mac OS X 10.7 Lion, 10.8 Mountain Lion
+ Darwin:1[[12]].*)
AC_MSG_RESULT(yes)
XE_APPEND([-Wl,-no_pie], LDFLAGS)
;;
I bet you tried that but forgot that [] is how configure.ac (actually,
the m4 macro processor) quotes things. You need to double them.
Regards,
Steve
_______________________________________________
XEmacs-Patches mailing list
XEmacs-Patches(a)xemacs.org
http://lists.xemacs.org/mailman/listinfo/xemacs-patches