pkgsrc/editors/emacs22/hacks.mk
jperkin c24ed9c54f The "rename" rule is a published synonym for the "opt" transform rule, however
only the latter is supported by cwrappers.  Change them all to "opt" rules for
consistency and to gain compatibility with cwrappers.
2014-12-15 11:46:34 +00:00

27 lines
663 B
Makefile

# $NetBSD: hacks.mk,v 1.7 2014/12/15 11:46:34 jperkin Exp $
.if !defined(EMACS_HACKS_MK)
EMACS_HACKS_MK= defined
.include "../../mk/compiler.mk"
### [ Wed Jul 20 23:40:49 UTC 2011 : tron ]
### On NetBSD/i386, gcc optimisation, at least for version 4.5.3, produces
### a "temacs" binary which segfaults.
###
. if !empty(MACHINE_PLATFORM:MNetBSD-*-i386)
. if !empty(CC_VERSION:Mgcc-4.5.*)
PKG_HACKS+= optimisation
BUILDLINK_TRANSFORM+= opt:-O[0-9]*:-O0
. endif
. endif
###
### Workaround for PR pkg/39778
###
. if !empty(MACHINE_PLATFORM:MNetBSD-[4-9].*-x86_64)
pre-build:
${TOUCH} ${WRKSRC}/leim/quail/tsang-b5.el
. endif
.endif # EMACS_HACKS_MK