summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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