summaryrefslogtreecommitdiff
path: root/lang/perl5
diff options
context:
space:
mode:
authorschnoebe <schnoebe@pkgsrc.org>2014-01-31 17:38:48 +0000
committerschnoebe <schnoebe@pkgsrc.org>2014-01-31 17:38:48 +0000
commitb7a4e7c35064ae1aaa0f00f21da0966006f28481 (patch)
tree403a8065c475369b607ec3b577d3e8c844e5b619 /lang/perl5
parent1762f056f9d22705949b2d0d5980da2635ca635a (diff)
downloadpkgsrc-b7a4e7c35064ae1aaa0f00f21da0966006f28481.tar.gz
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 (limited to 'lang/perl5')
-rw-r--r--lang/perl5/Makefile3
-rw-r--r--lang/perl5/hacks.mk12
2 files changed, 13 insertions, 2 deletions
diff --git a/lang/perl5/Makefile b/lang/perl5/Makefile
index 0b90e929aed..807bb1bee68 100644
--- a/lang/perl5/Makefile
+++ b/lang/perl5/Makefile
@@ -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 --git a/lang/perl5/hacks.mk b/lang/perl5/hacks.mk
index 0405d9a67ba..b22eb086901 100644
--- a/lang/perl5/hacks.mk
+++ b/lang/perl5/hacks.mk
@@ -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 @@ PKG_HACKS+= broken-haiku-pthreads
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