diff options
author | snj <snj> | 2004-03-03 00:20:19 +0000 |
---|---|---|
committer | snj <snj> | 2004-03-03 00:20:19 +0000 |
commit | 86a880c05a9395c4069b623e0e950b0f28e74bf5 (patch) | |
tree | a21884b81f82a6c4c9639e41e3bc3fcd2e0a2d88 /graphics/MesaLib | |
parent | d4c820e1fff206e6995e32d74283034911feefef (diff) | |
download | pkgsrc-86a880c05a9395c4069b623e0e950b0f28e74bf5.tar.gz |
Work around what seems to be an optimization bug in gcc3 by transforming
-O[23] out of existence.
Diffstat (limited to 'graphics/MesaLib')
-rw-r--r-- | graphics/MesaLib/Makefile | 8 |
1 files changed, 6 insertions, 2 deletions
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 |