$NetBSD: patch-ac,v 1.22 2011/12/03 22:46:30 jmmv Exp $

http://lists.gnu.org/archive/html/emacs-bug-tracker/2011-07/msg00445.html

Bug #8395: Disable address randomization under Darwin to fix compilation
with Xcode 4.1.

--- src/s/darwin.h.orig	2011-11-26 03:20:20.000000000 +0000
+++ src/s/darwin.h
@@ -181,7 +181,7 @@ along with GNU Emacs.  If not, see <http
    end of the header for adding load commands.  Needed for dumping.
    0x690 is the total size of 30 segment load commands (at 56
    each); under Cocoa 31 commands are required.  */
-#define LD_SWITCH_SYSTEM_TEMACS -prebind LIBS_NSGUI -Xlinker -headerpad -Xlinker HEADERPAD_EXTRA
+#define LD_SWITCH_SYSTEM_TEMACS -fno-pie -prebind LIBS_NSGUI -Xlinker -headerpad -Xlinker HEADERPAD_EXTRA
 
 #define C_SWITCH_SYSTEM_TEMACS -Dtemacs
 
