pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/lang/perl58 Remove optimisation flags from GCC command...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/1c0e6c15c251
branches:  trunk
changeset: 483525:1c0e6c15c251
user:      jlam <jlam%pkgsrc.org@localhost>
date:      Sun Nov 14 07:50:58 2004 +0000

description:
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:

 lang/perl58/hacks.mk |  12 +++++++++++-
 1 files changed, 11 insertions(+), 1 deletions(-)

diffs (23 lines):

diff -r 8949d7a371a8 -r 1c0e6c15c251 lang/perl58/hacks.mk
--- a/lang/perl58/hacks.mk      Sun Nov 14 07:48:30 2004 +0000
+++ b/lang/perl58/hacks.mk      Sun Nov 14 07:50:58 2004 +0000
@@ -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 @@
 .    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



Home | Main Index | Thread Index | Old Index