diff options
author | jdc <jdc> | 2012-05-29 10:57:16 +0000 |
---|---|---|
committer | jdc <jdc> | 2012-05-29 10:57:16 +0000 |
commit | ff3f1fa5203e41bf411e05a1f3809d26e7c10b3e (patch) | |
tree | 7e575b6541eabb3336cddae655a42b50b2c68117 /x11/py-sip | |
parent | ac0341872f03aea6f1dc22941c81774e04ab02da (diff) | |
download | pkgsrc-ff3f1fa5203e41bf411e05a1f3809d26e7c10b3e.tar.gz |
Work around gcc/sparc64/-O2 bug by using buildlink to remove "-O2".
Diffstat (limited to 'x11/py-sip')
-rw-r--r-- | x11/py-sip/Makefile | 8 |
1 files changed, 7 insertions, 1 deletions
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 |