pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/graphics/MesaLib Work around what seems to be an optim...
details: https://anonhg.NetBSD.org/pkgsrc/rev/93c3af7b78f8
branches: trunk
changeset: 469923:93c3af7b78f8
user: snj <snj%pkgsrc.org@localhost>
date: Wed Mar 03 00:20:19 2004 +0000
description:
Work around what seems to be an optimization bug in gcc3 by transforming
-O[23] out of existence.
diffstat:
graphics/MesaLib/Makefile | 8 ++++++--
1 files changed, 6 insertions(+), 2 deletions(-)
diffs (28 lines):
diff -r 1f3183fcb397 -r 93c3af7b78f8 graphics/MesaLib/Makefile
--- a/graphics/MesaLib/Makefile Tue Mar 02 23:15:32 2004 +0000
+++ b/graphics/MesaLib/Makefile Wed Mar 03 00:20:19 2004 +0000
@@ -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 @@
${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
Home |
Main Index |
Thread Index |
Old Index