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

This commit is contained in:
tnn 2008-05-29 12:43:39 +00:00
parent 27c1967802
commit 37f381998b

View file

@ -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)