pkgsrc-Changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

CVS commit: pkgsrc/editors/xemacs-current



Module Name:    pkgsrc
Committed By:   hauke
Date:           Mon Oct 31 14:28:20 UTC 2016

Added Files:
        pkgsrc/editors/xemacs-current: hacks.mk

Log Message:
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.


To generate a diff of this commit:
cvs rdiff -u -r0 -r1.1 pkgsrc/editors/xemacs-current/hacks.mk

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Added files:

Index: pkgsrc/editors/xemacs-current/hacks.mk
diff -u /dev/null pkgsrc/editors/xemacs-current/hacks.mk:1.1
--- /dev/null   Mon Oct 31 14:28:20 2016
+++ pkgsrc/editors/xemacs-current/hacks.mk      Mon Oct 31 14:28:20 2016
@@ -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



Home | Main Index | Thread Index | Old Index