pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/lang/perl5 perl5: low cost hack for alignment issue on...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/38ba2ed4ab06
branches:  trunk
changeset: 387579:38ba2ed4ab06
user:      maya <maya%pkgsrc.org@localhost>
date:      Wed Nov 21 08:33:51 2018 +0000

description:
perl5: low cost hack for alignment issue on SunOS/sparc.
Substitute -O3 with -O2.

This is tracked upstream in https://rt.perl.org/Public/Bug/Display.html?id=133495
>From Hiroshi Hakoyama in PR pkg/53568

diffstat:

 lang/perl5/hacks.mk |  9 ++++++++-
 1 files changed, 8 insertions(+), 1 deletions(-)

diffs (23 lines):

diff -r c4cbc6a0dcf4 -r 38ba2ed4ab06 lang/perl5/hacks.mk
--- a/lang/perl5/hacks.mk       Wed Nov 21 08:23:22 2018 +0000
+++ b/lang/perl5/hacks.mk       Wed Nov 21 08:33:51 2018 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: hacks.mk,v 1.20 2018/11/20 09:07:06 maya Exp $
+# $NetBSD: hacks.mk,v 1.21 2018/11/21 08:33:51 maya Exp $
 
 .if !defined(PERL5_HACKS_MK)
 PERL5_HACKS_MK=        defined
@@ -22,6 +22,13 @@
 BUILDLINK_TRANSFORM+=  opt:-O[0-9]*:-Os
 .endif
 
+# Alignment fault on perl 5.28.0
+# https://rt.perl.org/Public/Bug/Display.html?id=133495
+.if ${OPSYS} == "SunOS" && !empty(MACHINE_ARCH:Msparc*)
+PKG_HACKS+=            
+BUILDLINK_TRANSFORM+=  opt:-O3:-O2
+.endif
+
 ### [Fri Jan 31 11:09:04 CST 2014 : schnoebe]
 ### [Fri Oct 28 11:53:57 EDT 2016 : dholland - extended to gcc5]
 ### gcc-[45].*.* in NetBSD/alpha causes unaligned access exception in perl.



Home | Main Index | Thread Index | Old Index