summaryrefslogtreecommitdiff
path: root/editors/emacs
diff options
context:
space:
mode:
authorhiramatsu <hiramatsu@pkgsrc.org>2005-10-14 08:59:50 +0000
committerhiramatsu <hiramatsu@pkgsrc.org>2005-10-14 08:59:50 +0000
commitf1d7980a7c5316492db96dc3ad6dc46cc8e36bb5 (patch)
tree26b58178f6b9e05954035229863502f6ec2e2326 /editors/emacs
parentbd3a379dd5dfc9b2c804659ee388251f62f2731e (diff)
downloadpkgsrc-f1d7980a7c5316492db96dc3ad6dc46cc8e36bb5.tar.gz
Build fix on OpenBSD, borrowed from OpenBSD ports.
Quote from the commit log(ports/editors/emacs21/Makefile version 1.10). ----------------------------------------- Work around the fact that emacs undump knows too much about the layout of elf files (or thinks it does). These assumptions were just broken by binutils/ld changes to put GOT and PLT into their own PT_LOAD sections. Thus BSS is no longer part of the DATA PT_LOAD section. This is a workaround using the '-Z' compatibility flag which disables the GOT/PLT padding.
Diffstat (limited to 'editors/emacs')
-rw-r--r--editors/emacs/Makefile.common7
1 files changed, 6 insertions, 1 deletions
diff --git a/editors/emacs/Makefile.common b/editors/emacs/Makefile.common
index 6271aa0c8d0..05880a9d53f 100644
--- a/editors/emacs/Makefile.common
+++ b/editors/emacs/Makefile.common
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile.common,v 1.2 2005/06/30 10:12:35 markd Exp $
+# $NetBSD: Makefile.common,v 1.3 2005/10/14 08:59:50 hiramatsu Exp $
MASTER_SITES= ${MASTER_SITE_GNU:=emacs/}
MAINTAINER= markd@NetBSD.org
@@ -48,6 +48,11 @@ PLIST_SUBST+= FNS_EL=""
PLIST_SUBST+= DOCTAIL="-${EMACSVERSION}.1"
.endif
+# Disable W^X.
+.if ${OPSYS} == "OpenBSD"
+LDFLAGS+= -Z
+.endif
+
.include "../../mk/compiler.mk"
.if !empty(CC_VERSION:Mgcc-3.*)
CFLAGS+= -fno-zero-initialized-in-bss