From 86a880c05a9395c4069b623e0e950b0f28e74bf5 Mon Sep 17 00:00:00 2001 From: snj Date: Wed, 3 Mar 2004 00:20:19 +0000 Subject: Work around what seems to be an optimization bug in gcc3 by transforming -O[23] out of existence. --- graphics/MesaLib/Makefile | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'graphics/MesaLib') diff --git a/graphics/MesaLib/Makefile b/graphics/MesaLib/Makefile index b0e6632f6f2..2d09dc9ee4b 100644 --- a/graphics/MesaLib/Makefile +++ b/graphics/MesaLib/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.30 2004/01/22 12:58:19 adam Exp $ +# $NetBSD: Makefile,v 1.31 2004/03/03 00:20:19 snj Exp $ # PKGNAME= MesaLib-${MESA_VERSION} @@ -16,13 +16,17 @@ INSTLIBS= ${WRKSRC}/src/mesa/libGL.la \ ${WRKSRC}/src/glw/libGLw.la \ ${WRKSRC}/src/mesa/libOSMesa.la -.include "../../mk/bsd.prefs.mk" +.include "../../mk/compiler.mk" # The sparc asm included with Mesa does not build on sparc64 .if ${OPSYS} == "NetBSD" && ${MACHINE_ARCH} == "sparc64" CONFIGURE_ARGS+= --disable-sparc .endif +.if !empty(CC_VERSION:Mgcc-3*) +BUILDLINK_TRANSFORM+= S:-O[23]: +.endif + pre-build: cd ${WRKSRC} && ${RM} -fr src/glu src/glut progs -- cgit v1.2.3