summaryrefslogtreecommitdiff
path: root/graphics/Mesa
diff options
context:
space:
mode:
authortnn <tnn>2008-05-29 12:43:39 +0000
committertnn <tnn>2008-05-29 12:43:39 +0000
commit3ae1ecd4ce5d6766ad74deec445b54d5174b4a6b (patch)
treefb44f5c9a899416aefe0ba5834298152aabf0963 /graphics/Mesa
parentffc56db9b79339ca26a583527fb4160a58547d20 (diff)
downloadpkgsrc-3ae1ecd4ce5d6766ad74deec445b54d5174b4a6b.tar.gz
The Tru64 compiler doesn't know __FUNCTION__ so just define it to __FILE__
Diffstat (limited to 'graphics/Mesa')
-rw-r--r--graphics/Mesa/Makefile.lib6
1 files changed, 5 insertions, 1 deletions
diff --git a/graphics/Mesa/Makefile.lib b/graphics/Mesa/Makefile.lib
index cd510381df5..ccaf5ce0578 100644
--- a/graphics/Mesa/Makefile.lib
+++ b/graphics/Mesa/Makefile.lib
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile.lib,v 1.11 2008/05/17 18:52:17 tnn Exp $
+# $NetBSD: Makefile.lib,v 1.12 2008/05/29 12:43:39 tnn Exp $
#
# This Makefile fragment is included by all packages that build libraries
# from the Mesa sources.
@@ -39,6 +39,10 @@ MAKE_ENV+= USE_XCB=no
.include "../../mk/compiler.mk"
+.if !empty(PKGSRC_COMPILER:Mccc)
+CFLAGS+= -D__FUNCTION__=__FILE__
+.endif
+
MESA_HZ?= 100
MAKE_ENV+= MESA_HZ=${MESA_HZ:Q}
.if ${OPSYS} == "NetBSD" && exists(/sbin/sysctl)