diff options
author | jperkin <jperkin> | 2015-09-07 12:57:29 +0000 |
---|---|---|
committer | jperkin <jperkin> | 2015-09-07 12:57:29 +0000 |
commit | 042c0972d316a73ffaaf8f7cffbe583390d553b9 (patch) | |
tree | fee2b729f6b0ad9695f943fcd3dfd412c8491c7a /sysutils | |
parent | 8062e8ef06d3a690908eb89484cf6583c2048e78 (diff) | |
download | pkgsrc-042c0972d316a73ffaaf8f7cffbe583390d553b9.tar.gz |
Don't use -Wno-error flags on Darwin, its version of clang does not support
them.
Diffstat (limited to 'sysutils')
-rw-r--r-- | sysutils/collectd/Makefile.common | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/sysutils/collectd/Makefile.common b/sysutils/collectd/Makefile.common index f46983f76ae..baf7f71c042 100644 --- a/sysutils/collectd/Makefile.common +++ b/sysutils/collectd/Makefile.common @@ -1,4 +1,4 @@ -# $NetBSD: Makefile.common,v 1.9 2015/06/10 20:05:26 fhajny Exp $ +# $NetBSD: Makefile.common,v 1.10 2015/09/07 12:57:29 jperkin Exp $ # # used by sysutils/collectd/Makefile # used by sysutils/collectd-amqp/Makefile @@ -71,7 +71,8 @@ CONFIGURE_ARGS+= --with-ltdl-include=${BUILDLINK_PREFIX.libltdl}/include CPPFLAGS.SunOS+= -DSOLARIS2=${OS_VERSION:C/5.//} .include "../../mk/compiler.mk" -.if !empty(PKGSRC_COMPILER:Mclang) +# XXX: proper clang version check when we have support for it. +.if !empty(PKGSRC_COMPILER:Mclang) && ${OPSYS} != "Darwin" CFLAGS+= -Wno-error=tautological-pointer-compare \ -Wno-error=pointer-bool-conversion .endif |