pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/editors/emacs Build fix on OpenBSD, borrowed from Open...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/fcf65e8bd327
branches:  trunk
changeset: 500908:fcf65e8bd327
user:      hiramatsu <hiramatsu%pkgsrc.org@localhost>
date:      Fri Oct 14 08:59:50 2005 +0000

description:
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:

 editors/emacs/Makefile.common |  7 ++++++-
 1 files changed, 6 insertions(+), 1 deletions(-)

diffs (21 lines):

diff -r da2f68041692 -r fcf65e8bd327 editors/emacs/Makefile.common
--- a/editors/emacs/Makefile.common     Fri Oct 14 08:37:16 2005 +0000
+++ b/editors/emacs/Makefile.common     Fri Oct 14 08:59:50 2005 +0000
@@ -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@localhost
@@ -48,6 +48,11 @@
 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



Home | Main Index | Thread Index | Old Index