diff options
author | jmmv <jmmv@pkgsrc.org> | 2011-12-03 22:46:30 +0000 |
---|---|---|
committer | jmmv <jmmv@pkgsrc.org> | 2011-12-03 22:46:30 +0000 |
commit | fff041f0ee85ab177e741f9d538a144ce6e33f7a (patch) | |
tree | 895fc996f447c8f66c9ac1ed5b4ef034a613a24d /editors/emacs/Makefile.common | |
parent | c97e42a83208c96a5f27563704878e1698caa251 (diff) | |
download | pkgsrc-fff041f0ee85ab177e741f9d538a144ce6e33f7a.tar.gz |
Disable address randomization under Darwin to fix build problems with
Xcode 4.1.
This does not fix all issues though, as the installation fails while
stripping the binaries. Not sure how to get rid of this yet, and it
seems to affect other packages as well.
Diffstat (limited to 'editors/emacs/Makefile.common')
-rw-r--r-- | editors/emacs/Makefile.common | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/editors/emacs/Makefile.common b/editors/emacs/Makefile.common index a1e9d5a85d0..052d5d0ac19 100644 --- a/editors/emacs/Makefile.common +++ b/editors/emacs/Makefile.common @@ -1,4 +1,4 @@ -# $NetBSD: Makefile.common,v 1.29 2011/11/28 16:29:58 wiz Exp $ +# $NetBSD: Makefile.common,v 1.30 2011/12/03 22:46:30 jmmv Exp $ # # used by editors/emacs/Makefile # used by editors/emacs-nox11/Makefile @@ -56,6 +56,13 @@ CHECK_WRKREF_SKIP+= bin/emacs-${EMACS_VERSION} .include "../../mk/bsd.prefs.mk" +.if (${OPSYS} == "Darwin") +# Disable address randomization to fix build with Xcode 4.1. This is from +# upstream bug #8395. Details in: +# http://lists.gnu.org/archive/html/emacs-bug-tracker/2011-07/msg00445.html +CFLAGS+= -fno-pie +.endif + .if (${OPSYS} == "DragonFly") && exists(/usr/lib/crtn.o) CPPFLAGS+= -DDFLY_CRT_USRLIB .endif |