pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/net/nmap Made the package work with SunPro on Solaris ...
details: https://anonhg.NetBSD.org/pkgsrc/rev/2a10bab7820f
branches: trunk
changeset: 506884:2a10bab7820f
user: rillig <rillig%pkgsrc.org@localhost>
date: Mon Jan 23 15:19:24 2006 +0000
description:
Made the package work with SunPro on Solaris 8. That C++ compiler
neither knows __FUNCTION__ nor __func__.
diffstat:
net/nmap/Makefile | 9 ++++++++-
1 files changed, 8 insertions(+), 1 deletions(-)
diffs (23 lines):
diff -r 9fe147753553 -r 2a10bab7820f net/nmap/Makefile
--- a/net/nmap/Makefile Mon Jan 23 15:13:08 2006 +0000
+++ b/net/nmap/Makefile Mon Jan 23 15:19:24 2006 +0000
@@ -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 @@
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"
Home |
Main Index |
Thread Index |
Old Index