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 | 753ea0527f6e8a59f08326705b5e3b6b15a5a3bb (patch) | |
tree | d7305c1b77a4d22536af50ae41fb2c477cfc2adc /net | |
parent | 818f46b417813241c6a208549ef9eb8178a2a3a7 (diff) | |
download | pkgsrc-753ea0527f6e8a59f08326705b5e3b6b15a5a3bb.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" |