From 6b2c0b726397d9f273ad0136db9112e5cd63218e Mon Sep 17 00:00:00 2001 From: rillig Date: Mon, 23 Jan 2006 15:19:24 +0000 Subject: Made the package work with SunPro on Solaris 8. That C++ compiler neither knows __FUNCTION__ nor __func__. --- net/nmap/Makefile | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'net/nmap') diff --git a/net/nmap/Makefile b/net/nmap/Makefile index 990b2196902..961b9fcc8e5 100644 --- a/net/nmap/Makefile +++ b/net/nmap/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.46 2005/12/08 21:59:17 salo Exp $ +# $NetBSD: Makefile,v 1.47 2006/01/23 15:19:24 rillig Exp $ # DISTNAME= nmap-3.95 @@ -29,6 +29,13 @@ CONFIGURE_ARGS+= --without-nmapfe MAKE_ENV+= CPPFLAGS="" .endif +# The SunPro C++ compiler does not understand __FUNCTION__, as well as +# __func__. So __FILE__ is the nearest replacement. +.include "../../mk/compiler.mk" +.if !empty(PKGSRC_COMPILER:Msunpro) +CFLAGS.SunOS+= -D__FUNCTION__=__FILE__ +.endif + .include "../../devel/pcre/buildlink3.mk" .include "../../net/libpcap/buildlink3.mk" .include "../../security/openssl/buildlink3.mk" -- cgit v1.2.3