diff options
author | rillig <rillig@pkgsrc.org> | 2006-07-02 19:17:26 +0000 |
---|---|---|
committer | rillig <rillig@pkgsrc.org> | 2006-07-02 19:17:26 +0000 |
commit | 10a3bbe7cfa9d25ab6498e50462fdeae2bd12951 (patch) | |
tree | d7305c1b77a4d22536af50ae41fb2c477cfc2adc /net | |
parent | cd2d9e6fe22258ae3a259ff2c110aca67c3ce56a (diff) | |
download | pkgsrc-10a3bbe7cfa9d25ab6498e50462fdeae2bd12951.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/Makefile | 10 |
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" |