pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/graphics/Mesa The Tru64 compiler doesn't know __FUNCTI...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/c43c4a405476
branches:  trunk
changeset: 542889:c43c4a405476
user:      tnn <tnn%pkgsrc.org@localhost>
date:      Thu May 29 12:43:39 2008 +0000

description:
The Tru64 compiler doesn't know __FUNCTION__ so just define it to __FILE__

diffstat:

 graphics/Mesa/Makefile.lib |  6 +++++-
 1 files changed, 5 insertions(+), 1 deletions(-)

diffs (20 lines):

diff -r e233a4903e77 -r c43c4a405476 graphics/Mesa/Makefile.lib
--- a/graphics/Mesa/Makefile.lib        Thu May 29 12:41:35 2008 +0000
+++ b/graphics/Mesa/Makefile.lib        Thu May 29 12:43:39 2008 +0000
@@ -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 @@
 
 .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)



Home | Main Index | Thread Index | Old Index