diff options
author | hauke <hauke@pkgsrc.org> | 2016-10-31 14:28:20 +0000 |
---|---|---|
committer | hauke <hauke@pkgsrc.org> | 2016-10-31 14:28:20 +0000 |
commit | 026f3cb4cda9361e7e93a22d060e0d3a0c49fe70 (patch) | |
tree | 67863ba0d0bb4c0d7a9da3ee26cc8e7369d6ea0b /editors | |
parent | 6703cdb47c9c6657579aa9c54c677a6d00bbd8ee (diff) | |
download | pkgsrc-026f3cb4cda9361e7e93a22d060e0d3a0c49fe70.tar.gz |
Re-add editors/xemacs-current/hacks.mk --
gcc 5 builtins collide with src/gmalloc.c's calloc(), which
results in 'xemacs -vanilla' busy-looping during the build.
Joerg suggested building with -fno-builtin, see
<http://mail-index.netbsd.org/tech-toolchain/2016/10/28/msg002820.html> ff.
Diffstat (limited to 'editors')
-rw-r--r-- | editors/xemacs-current/hacks.mk | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/editors/xemacs-current/hacks.mk b/editors/xemacs-current/hacks.mk new file mode 100644 index 00000000000..48a386524c8 --- /dev/null +++ b/editors/xemacs-current/hacks.mk @@ -0,0 +1,17 @@ +# $NetBSD: hacks.mk,v 1.1 2016/10/31 14:28:20 hauke 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 |