pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/lang/perl5 pkg/48500: add a hack on NetBSD/alpha to a...
details: https://anonhg.NetBSD.org/pkgsrc/rev/72428b983180
branches: trunk
changeset: 629918:72428b983180
user: schnoebe <schnoebe%pkgsrc.org@localhost>
date: Fri Jan 31 17:38:48 2014 +0000
description:
pkg/48500: add a hack on NetBSD/alpha to add the gcc compiler flag
-fno-tree-ter, removing the alignment warnings printed by the
NetBSD/alpha kernel when perl was executed.
bump PKGREVISION
diffstat:
lang/perl5/Makefile | 3 ++-
lang/perl5/hacks.mk | 12 +++++++++++-
2 files changed, 13 insertions(+), 2 deletions(-)
diffs (38 lines):
diff -r bc6d99e45bc6 -r 72428b983180 lang/perl5/Makefile
--- a/lang/perl5/Makefile Fri Jan 31 17:32:19 2014 +0000
+++ b/lang/perl5/Makefile Fri Jan 31 17:38:48 2014 +0000
@@ -1,8 +1,9 @@
-# $NetBSD: Makefile,v 1.216 2014/01/24 16:37:19 ryoon Exp $
+# $NetBSD: Makefile,v 1.217 2014/01/31 17:38:48 schnoebe Exp $
.include "license.mk"
.include "Makefile.common"
+PKGREVISION= 1
COMMENT= Practical Extraction and Report Language
CONFLICTS+= perl-base-[0-9]* perl-thread-[0-9]*
diff -r bc6d99e45bc6 -r 72428b983180 lang/perl5/hacks.mk
--- a/lang/perl5/hacks.mk Fri Jan 31 17:32:19 2014 +0000
+++ b/lang/perl5/hacks.mk Fri Jan 31 17:38:48 2014 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: hacks.mk,v 1.8 2013/04/03 11:57:46 obache Exp $
+# $NetBSD: hacks.mk,v 1.9 2014/01/31 17:38:48 schnoebe Exp $
.if !defined(PERL5_HACKS_MK)
PERL5_HACKS_MK= defined
@@ -84,4 +84,14 @@
PERL5_BUILD_THREADS_SUPPORT= no
.endif
+### [Fri Jan 31 11:09:04 CST 2014 : schnoebe]
+### gcc-4.*.* in NetBSD/alpha causes unaligned access exception in perl.
+### -O works around, and there is a report that -O2 -fno-tree-ter is enough.
+.if !empty(MACHINE_PLATFORM:MNetBSD-*-alpha) && !empty(CC_VERSION:Mgcc-4.*.*)
+# XXX: is there any good way to replace the default -O2 with multiple args?
+PKG_HACKS+= alpha-optimisation
+#BUILDLINK_TRANSFORM+= rename:-O[2-9]*:-O2 -fno-tree-ter
+CFLAGS+=-fno-tree-ter
+.endif
+
.endif # PERL5_HACKS_MK
Home |
Main Index |
Thread Index |
Old Index