summaryrefslogtreecommitdiff
path: root/editors/emacs22
diff options
context:
space:
mode:
authortron <tron@pkgsrc.org>2011-07-20 23:41:12 +0000
committertron <tron@pkgsrc.org>2011-07-20 23:41:12 +0000
commit5756bb1805c64a5d8e8797c9afc200eb4406c21f (patch)
treeceb4b3cbb6b86615fa30e434acedce87d7f0f596 /editors/emacs22
parent6568acefa45a108f23d1a3c2fa430a8919b8336f (diff)
downloadpkgsrc-5756bb1805c64a5d8e8797c9afc200eb4406c21f.tar.gz
Build this package without optimization if GCC 4.5.* is used under
NetBSD/i386. This stops "temacs" from dumping core.
Diffstat (limited to 'editors/emacs22')
-rw-r--r--editors/emacs22/hacks.mk19
1 files changed, 19 insertions, 0 deletions
diff --git a/editors/emacs22/hacks.mk b/editors/emacs22/hacks.mk
new file mode 100644
index 00000000000..0216de6f684
--- /dev/null
+++ b/editors/emacs22/hacks.mk
@@ -0,0 +1,19 @@
+# $NetBSD: hacks.mk,v 1.4 2011/07/20 23:41:12 tron 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+= rename:-O[0-9]*:-O0
+. endif
+.endif
+
+.endif # EMACS_HACKS_MK