summaryrefslogtreecommitdiff
path: root/editors/xemacs
diff options
context:
space:
mode:
authorhauke <hauke>2011-12-11 15:32:53 +0000
committerhauke <hauke>2011-12-11 15:32:53 +0000
commit7f5d78b7980ec8ae5c7e70c92505ee6c9d22c3f3 (patch)
tree11b57e3c9e7e5c29f30445a57a4c73bfb953110a /editors/xemacs
parenteedb8d60568850595ac3599b61a046b5ad3fd922 (diff)
downloadpkgsrc-7f5d78b7980ec8ae5c7e70c92505ee6c9d22c3f3.tar.gz
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.
Diffstat (limited to 'editors/xemacs')
-rw-r--r--editors/xemacs/hacks.mk18
1 files changed, 18 insertions, 0 deletions
diff --git a/editors/xemacs/hacks.mk b/editors/xemacs/hacks.mk
new file mode 100644
index 00000000000..6671b1a8925
--- /dev/null
+++ b/editors/xemacs/hacks.mk
@@ -0,0 +1,18 @@
+# $NetBSD: hacks.mk,v 1.1 2011/12/11 15:32:53 hauke 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+= rename:-O[0-9]*:-Os
+.endif
+
+.endif # XEMACS_HACKS_MK