summaryrefslogtreecommitdiff
path: root/editors/xemacs
diff options
context:
space:
mode:
authorhauke <hauke@pkgsrc.org>2019-04-11 16:05:24 +0000
committerhauke <hauke@pkgsrc.org>2019-04-11 16:05:24 +0000
commit87a10a613b8348bd4e2f1f2d5f59a5b40ad89a94 (patch)
tree05e9d3c27916379b570f8b2c75fc7bc1bfb21036 /editors/xemacs
parent8b6eee33eda811aa4a05592d1565299768bd8e48 (diff)
downloadpkgsrc-87a10a613b8348bd4e2f1f2d5f59a5b40ad89a94.tar.gz
Build the XEmacsen with CFLAGS=-no-pie for newer gcc versions - the
dumped binary crashes otherwise.
Diffstat (limited to 'editors/xemacs')
-rw-r--r--editors/xemacs/Makefile4
-rw-r--r--editors/xemacs/hacks.mk16
2 files changed, 18 insertions, 2 deletions
diff --git a/editors/xemacs/Makefile b/editors/xemacs/Makefile
index 12e06886472..e1aa39de1d3 100644
--- a/editors/xemacs/Makefile
+++ b/editors/xemacs/Makefile
@@ -1,7 +1,7 @@
-# $NetBSD: Makefile,v 1.122 2018/12/19 13:29:34 hauke Exp $
+# $NetBSD: Makefile,v 1.123 2019/04/11 16:05:24 hauke Exp $
PKGNAME= ${DISTNAME}
-PKGREVISION= 4
+PKGREVISION= 5
COMMENT= XEmacs text editor version 21.4
# extra options for x11 support, not for sharing with xemacs-current-nox11
diff --git a/editors/xemacs/hacks.mk b/editors/xemacs/hacks.mk
new file mode 100644
index 00000000000..29ab2da79f2
--- /dev/null
+++ b/editors/xemacs/hacks.mk
@@ -0,0 +1,16 @@
+# $NetBSD: hacks.mk,v 1.7 2019/04/11 16:05:24 hauke Exp $
+
+.if !defined(XEMACS_HACKS_MK)
+XEMACS_HACKS_MK= defined
+
+.include "../../mk/compiler.mk"
+
+### Position-independent code does not rhyme well with
+### dumped emacsen.
+###
+.if !empty(CC_VERSION:Mgcc-[6789].*)
+PKG_HACKS+= disable-gcc-pie
+CFLAGS+= -no-pie
+.endif
+
+.endif # XEMACS_HACKS_MK