summaryrefslogtreecommitdiff
path: root/editors/xemacs-nox11/hacks.mk
diff options
context:
space:
mode:
Diffstat (limited to 'editors/xemacs-nox11/hacks.mk')
-rw-r--r--editors/xemacs-nox11/hacks.mk17
1 files changed, 17 insertions, 0 deletions
diff --git a/editors/xemacs-nox11/hacks.mk b/editors/xemacs-nox11/hacks.mk
new file mode 100644
index 00000000000..7ff97e072fa
--- /dev/null
+++ b/editors/xemacs-nox11/hacks.mk
@@ -0,0 +1,17 @@
+# $NetBSD: hacks.mk,v 1.1 2016/12/30 23:37:40 wiz Exp $
+
+.if !defined(XEMACS_HACKS_MK)
+XEMACS_HACKS_MK= defined
+
+.include "../../mk/compiler.mk"
+
+### [Fri Oct 28 10:00:00 UTC 2016 : hauke]
+### gcc 5 builtins collide with src/gmalloc.c's calloc(), which
+### results in 'xemacs -vanilla' busy-looping during the build.
+###
+.if !empty(PKGSRC_COMPILER:Mgcc) && !empty(CC_VERSION:Mgcc-5.[0-9]*)
+PKG_HACKS+= gcc5-malloc-builtin-conflict
+CFLAGS+= -fno-builtin
+.endif
+
+.endif # XEMACS_HACKS_MK