diff options
author | jperkin <jperkin@pkgsrc.org> | 2018-01-25 10:41:37 +0000 |
---|---|---|
committer | jperkin <jperkin@pkgsrc.org> | 2018-01-25 10:41:37 +0000 |
commit | 6ba9a2ca0d2f4552ffb78b811bebb31e305634d0 (patch) | |
tree | d0712151cb4061f3ac698a98d3ae41c6d28790eb /sysutils/fam | |
parent | f7287b526736b96af6f5508ef82f133c552949cf (diff) | |
download | pkgsrc-6ba9a2ca0d2f4552ffb78b811bebb31e305634d0.tar.gz |
fam: Disable c++11-narrowing on SunOS with clang.
Diffstat (limited to 'sysutils/fam')
-rw-r--r-- | sysutils/fam/Makefile | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/sysutils/fam/Makefile b/sysutils/fam/Makefile index 9ff8c45073c..a568d979b30 100644 --- a/sysutils/fam/Makefile +++ b/sysutils/fam/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.43 2017/11/26 10:42:46 wiz Exp $ +# $NetBSD: Makefile,v 1.44 2018/01/25 10:41:37 jperkin Exp $ DISTNAME= fam-2.7.0 PKGREVISION= 9 @@ -77,6 +77,11 @@ SUBST_SED.dirent+= -e 's/struct direct/struct dirent/g' .include "../../mk/compiler.mk" +# type 'unsigned long' to 'rpcprog_t' (aka 'unsigned int') +.if !empty(PKGSRC_COMPILER:Mclang) +CXXFLAGS.SunOS+= -Wno-c++11-narrowing +.endif + .if !empty(PKGSRC_COMPILER:Msunpro) BUILDLINK_TRANSFORM+= rm:-lstdc++ .endif |