pkgsrc/editors/xemacs/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

18 lines
561 B
Makefile

# $NetBSD: hacks.mk,v 1.3 2014/12/15 11:46:34 jperkin Exp $
.if !defined(XEMACS_HACKS_MK)
XEMACS_HACKS_MK= defined
.include "../../mk/compiler.mk"
### [Sun Dec 10 10:00:00 UTC 2011 : hauke]
### On PowerPC, building with -O2 optimisation with GCC (on netbsd-5,
### at least) results in 'xemacs -vanilla' dumping core.
### Lower optimisation as a workaround, until GCC is fixed.
###
.if !empty(CC_VERSION:Mgcc*) && !empty(MACHINE_PLATFORM:MNetBSD-*-powerpc)
PKG_HACKS+= powerpc-codegen
BUILDLINK_TRANSFORM+= opt:-O[0-9]*:-Os
.endif
.endif # XEMACS_HACKS_MK