diff options
author | hauke <hauke@pkgsrc.org> | 2019-04-11 16:05:24 +0000 |
---|---|---|
committer | hauke <hauke@pkgsrc.org> | 2019-04-11 16:05:24 +0000 |
commit | 87a10a613b8348bd4e2f1f2d5f59a5b40ad89a94 (patch) | |
tree | 05e9d3c27916379b570f8b2c75fc7bc1bfb21036 /editors/xemacs-current | |
parent | 8b6eee33eda811aa4a05592d1565299768bd8e48 (diff) | |
download | pkgsrc-87a10a613b8348bd4e2f1f2d5f59a5b40ad89a94.tar.gz |
Build the XEmacsen with CFLAGS=-no-pie for newer gcc versions - the
dumped binary crashes otherwise.
Diffstat (limited to 'editors/xemacs-current')
-rw-r--r-- | editors/xemacs-current/Makefile | 4 | ||||
-rw-r--r-- | editors/xemacs-current/hacks.mk | 16 |
2 files changed, 18 insertions, 2 deletions
diff --git a/editors/xemacs-current/Makefile b/editors/xemacs-current/Makefile index 18cc5fb99e1..d68a4e28734 100644 --- a/editors/xemacs-current/Makefile +++ b/editors/xemacs-current/Makefile @@ -1,7 +1,7 @@ -# $NetBSD: Makefile,v 1.98 2018/12/19 13:41:45 hauke Exp $ +# $NetBSD: Makefile,v 1.99 2019/04/11 16:05:24 hauke Exp $ PKGNAME= ${DISTNAME} -PKGREVISION= 6 +PKGREVISION= 7 COMMENT= *BETA* XEmacs text editor version ${PKGVERSION_NOREV} # extra options for x11 support, not for sharing with xemacs-current-nox11 diff --git a/editors/xemacs-current/hacks.mk b/editors/xemacs-current/hacks.mk new file mode 100644 index 00000000000..8b11aa12aa3 --- /dev/null +++ b/editors/xemacs-current/hacks.mk @@ -0,0 +1,16 @@ +# $NetBSD: hacks.mk,v 1.3 2019/04/11 16:05:24 hauke Exp $ + +.if !defined(XEMACS_CURRENT_HACKS_MK) +XEMACS_CURRENT_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_CURRENT_HACKS_MK |