From 0d344684dd51c5c7d6c992aa0b8944e708c012d4 Mon Sep 17 00:00:00 2001 From: jdc Date: Tue, 29 May 2012 10:57:16 +0000 Subject: Work around gcc/sparc64/-O2 bug by using buildlink to remove "-O2". --- x11/py-sip/Makefile | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'x11/py-sip') diff --git a/x11/py-sip/Makefile b/x11/py-sip/Makefile index a4adc69d62b..11d577d5ba0 100644 --- a/x11/py-sip/Makefile +++ b/x11/py-sip/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.31 2012/05/23 13:26:49 obache Exp $ +# $NetBSD: Makefile,v 1.32 2012/05/29 10:57:16 jdc Exp $ DISTNAME= sip-4.13.2 PKGNAME= ${PYPKGPREFIX}-${DISTNAME} @@ -51,6 +51,12 @@ CONFIGURE_ARGS+= LFLAGS_SHLIB="-shared" . endif .endif +# Hack: gcc on sparc64 miscompiles sipgen/parser.c at -O2 +.if ${MACHINE_ARCH} == "sparc64" && !empty(CC_VERSION:Mgcc*) +BUILDLINK_TRANSFORM+= rm:-O2 +.endif + + SUBST_CLASSES+= pyversfx SUBST_STAGE.pyversfx= pre-configure SUBST_FILES.pyversfx= sipgen/sipgen.sbf -- cgit v1.2.3