summaryrefslogtreecommitdiff
path: root/net
diff options
context:
space:
mode:
authorrillig <rillig>2006-07-02 19:17:26 +0000
committerrillig <rillig>2006-07-02 19:17:26 +0000
commit5e28fdfe67c25f5654e3fd62f493ba0f6464cb27 (patch)
treed7305c1b77a4d22536af50ae41fb2c477cfc2adc /net
parent0aec17f1908fc05ec2f5769d5b9690639585c616 (diff)
downloadpkgsrc-5e28fdfe67c25f5654e3fd62f493ba0f6464cb27.tar.gz
Compilers other than GCC are not expected to know the -MM option to
calculate dependencies, so disable it for them.
Diffstat (limited to 'net')
-rw-r--r--net/nmap/Makefile10
1 files changed, 9 insertions, 1 deletions
diff --git a/net/nmap/Makefile b/net/nmap/Makefile
index 66c1b423dd0..d774d29a716 100644
--- a/net/nmap/Makefile
+++ b/net/nmap/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.53 2006/07/02 17:22:14 rillig Exp $
+# $NetBSD: Makefile,v 1.54 2006/07/02 19:17:26 rillig Exp $
#
DISTNAME= nmap-4.11
@@ -37,6 +37,14 @@ MAKE_ENV+= CPPFLAGS=""
CFLAGS.SunOS+= -D__FUNCTION__=__FILE__
.endif
+.if empty(PKGSRC_COMPILER:Mgcc)
+# The Makefile uses a hard-coded option -MM to get the dependencies, which
+# is only understood by the GNU compiler. For a normal build the dependen-
+# cies are not needed anyway, only when patching files and fixing bugs.
+pre-build:
+ echo "# ignored" > ${WRKSRC}/makefile.dep
+.endif
+
.include "../../devel/pcre/buildlink3.mk"
.include "../../net/libpcap/buildlink3.mk"
.include "../../security/openssl/buildlink3.mk"