summaryrefslogtreecommitdiff
path: root/lang/perl58
diff options
context:
space:
mode:
authorjlam <jlam@pkgsrc.org>2004-11-14 07:50:58 +0000
committerjlam <jlam@pkgsrc.org>2004-11-14 07:50:58 +0000
commit201a688e308a207e0f1c3f02de1b5b11381d5455 (patch)
tree72b541805d4987f00ae77a65944d5d6e047c5450 /lang/perl58
parent2ab1ac2122fcccc27568e14898758c5f82cc0e52 (diff)
downloadpkgsrc-201a688e308a207e0f1c3f02de1b5b11381d5455.tar.gz
Remove optimisation flags from GCC command line when building on powerpc
to avoid a codegen bug: http://mail-index.netbsd.org/port-macppc/2004/10/18/0001.html
Diffstat (limited to 'lang/perl58')
-rw-r--r--lang/perl58/hacks.mk12
1 files changed, 11 insertions, 1 deletions
diff --git a/lang/perl58/hacks.mk b/lang/perl58/hacks.mk
index d75823ffc81..da61caba222 100644
--- a/lang/perl58/hacks.mk
+++ b/lang/perl58/hacks.mk
@@ -1,4 +1,4 @@
-# $NetBSD: hacks.mk,v 1.1 2004/11/14 07:48:30 jlam Exp $
+# $NetBSD: hacks.mk,v 1.2 2004/11/14 07:50:58 jlam Exp $
.include "../../mk/compiler.mk"
@@ -24,3 +24,13 @@ CFLAGS+= -DDEBUGGING -g -msoft-quad-float -O2
. endif
. endif
.endif
+
+### [Sun Nov 14 02:35:50 EST 2004 : jlam]
+### On PowerPC, building with optimisation with GCC causes an "attempt
+### to free unreference scalar". Remove optimisation flags as a
+### workaround until GCC is fixed.
+###
+.if !empty(CC_VERSION:Mgcc*) && (${MACHINE_ARCH} == "powerpc")
+PKG_HACKS+= powerpc-codegen
+BUILDLINK_TRANSFORM+= rm:-O[0-9]*
+.endif