summaryrefslogtreecommitdiff
path: root/graphics
diff options
context:
space:
mode:
authorsnj <snj@pkgsrc.org>2004-03-03 00:20:19 +0000
committersnj <snj@pkgsrc.org>2004-03-03 00:20:19 +0000
commitc074735a441aefb844810438be53841fe3c80cdb (patch)
treea21884b81f82a6c4c9639e41e3bc3fcd2e0a2d88 /graphics
parent27cd6bb7a9d295f85845f8e41c8bf7c13b2d6649 (diff)
downloadpkgsrc-c074735a441aefb844810438be53841fe3c80cdb.tar.gz
Work around what seems to be an optimization bug in gcc3 by transforming
-O[23] out of existence.
Diffstat (limited to 'graphics')
-rw-r--r--graphics/MesaLib/Makefile8
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