summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorjlam <jlam>2004-11-14 07:50:58 +0000
committerjlam <jlam>2004-11-14 07:50:58 +0000
commit9963484bdd3cc8f5d6cbd4abbcf9c6ca6782ab94 (patch)
tree72b541805d4987f00ae77a65944d5d6e047c5450
parent5d1adb9a0f783ca1d2c99912f71c281244cb8d77 (diff)
downloadpkgsrc-9963484bdd3cc8f5d6cbd4abbcf9c6ca6782ab94.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
-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