diff options
Diffstat (limited to 'editors/emacs24/hacks.mk')
-rw-r--r-- | editors/emacs24/hacks.mk | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/editors/emacs24/hacks.mk b/editors/emacs24/hacks.mk new file mode 100644 index 00000000000..e222031c97a --- /dev/null +++ b/editors/emacs24/hacks.mk @@ -0,0 +1,18 @@ +# $NetBSD: hacks.mk,v 1.1 2016/04/04 13:39:08 ryoon Exp $ + +.if !defined(EMACS_HACKS_MK) +EMACS_HACKS_MK= defined + +.include "../../mk/compiler.mk" + +### On NetBSD/amd64 7.99.26, gcc optimisation, at least for version 5.3, +### produces, a "temacs" binary which segfaults. +### +. if !empty(MACHINE_PLATFORM:MNetBSD-*-x86_64) +. if !empty(CC_VERSION:Mgcc-5.3.*) +PKG_HACKS+= optimisation +BUILDLINK_TRANSFORM+= opt:-O2:-O0 +. endif +. endif + +.endif # EMACS_HACKS_MK |