Thu Jun 9 12:28:54 2016 UTC ()
Apply optimization hack for GCC 5.4 too


(ryoon)
diff -r1.3 -r1.4 pkgsrc/editors/emacs24/hacks.mk

cvs diff -r1.3 -r1.4 pkgsrc/editors/emacs24/Attic/hacks.mk (expand / switch to unified diff)

--- pkgsrc/editors/emacs24/Attic/hacks.mk 2016/04/25 12:12:40 1.3
+++ pkgsrc/editors/emacs24/Attic/hacks.mk 2016/06/09 12:28:54 1.4
@@ -1,25 +1,25 @@ @@ -1,25 +1,25 @@
1# $NetBSD: hacks.mk,v 1.3 2016/04/25 12:12:40 wiz Exp $ 1# $NetBSD: hacks.mk,v 1.4 2016/06/09 12:28:54 ryoon Exp $
2 2
3.if !defined(EMACS_HACKS_MK) 3.if !defined(EMACS_HACKS_MK)
4EMACS_HACKS_MK= defined 4EMACS_HACKS_MK= defined
5 5
6.include "../../mk/compiler.mk" 6.include "../../mk/compiler.mk"
7 7
8### On NetBSD/amd64 7.99.26, gcc optimisation, at least for version 5.3, 8### On NetBSD/amd64 7.99.26, gcc optimisation, at least for version 5.x,
9### produces, a "temacs" binary which segfaults. 9### produces, a "temacs" binary which segfaults.
10### 10###
11. if !empty(MACHINE_PLATFORM:MNetBSD-*-x86_64) 11. if !empty(MACHINE_PLATFORM:MNetBSD-*-x86_64)
12. if !empty(CC_VERSION:Mgcc-5.3.*) 12. if !empty(CC_VERSION:Mgcc-5.*)
13PKG_HACKS+= optimisation 13PKG_HACKS+= optimisation
14BUILDLINK_TRANSFORM+= opt:-O2:-O0 14BUILDLINK_TRANSFORM+= opt:-O2:-O0
15. endif 15. endif
16. endif 16. endif
17 17
18### PaX is enabled, bootstrap-emacs command dumps core with segfault. 18### PaX is enabled, bootstrap-emacs command dumps core with segfault.
19### emacs-24.5/src/Makefile.in does not support NetBSD paxctl(8) syntax. 19### emacs-24.5/src/Makefile.in does not support NetBSD paxctl(8) syntax.
20### http://debbugs.gnu.org/cgi/bugreport.cgi?bug=23371 20### http://debbugs.gnu.org/cgi/bugreport.cgi?bug=23371
21### 21###
22. if !empty(MACHINE_PLATFORM:MNetBSD-*-x86_64) 22. if !empty(MACHINE_PLATFORM:MNetBSD-*-x86_64)
23. if exists(/usr/sbin/paxctl) 23. if exists(/usr/sbin/paxctl)
24SUBST_CLASSES+= paxctl 24SUBST_CLASSES+= paxctl
25SUBST_STAGE.paxctl= pre-configure 25SUBST_STAGE.paxctl= pre-configure