pkgsrc/editors/emacs25/hacks.mk
2017-06-17 19:40:18 +00:00

18 lines
444 B
Makefile

# $NetBSD: hacks.mk,v 1.2 2017/06/17 19:40:19 joerg 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.x,
### produces, a "temacs" binary which segfaults.
###
.if !empty(MACHINE_PLATFORM:MNetBSD-*)
. if !empty(CC_VERSION:Mgcc-5.*)
PKG_HACKS+= optimisation
CFLAGS+= -fno-optimize-strlen
. endif
.endif
.endif # EMACS_HACKS_MK