summaryrefslogtreecommitdiff
path: root/net
diff options
context:
space:
mode:
authorrillig <rillig@pkgsrc.org>2006-01-23 15:19:24 +0000
committerrillig <rillig@pkgsrc.org>2006-01-23 15:19:24 +0000
commit7175cbf85f9905fc1e0fc9ebae55446b12d8ae60 (patch)
tree732c912c6b696e13d209a031540c8a84b0733ce4 /net
parent84f70a4c1af0676f0968324d7e7c4cca4fd8b321 (diff)
downloadpkgsrc-7175cbf85f9905fc1e0fc9ebae55446b12d8ae60.tar.gz
Made the package work with SunPro on Solaris 8. That C++ compiler
neither knows __FUNCTION__ nor __func__.
Diffstat (limited to 'net')
-rw-r--r--net/nmap/Makefile9
1 files changed, 8 insertions, 1 deletions
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"