pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/sysutils/fam fam: Disable c++11-narrowing on SunOS wit...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/a4e7ade7a18a
branches:  trunk
changeset: 374555:a4e7ade7a18a
user:      jperkin <jperkin%pkgsrc.org@localhost>
date:      Thu Jan 25 10:41:37 2018 +0000

description:
fam: Disable c++11-narrowing on SunOS with clang.

diffstat:

 sysutils/fam/Makefile |  7 ++++++-
 1 files changed, 6 insertions(+), 1 deletions(-)

diffs (21 lines):

diff -r 9fc0dea65e7d -r a4e7ade7a18a sysutils/fam/Makefile
--- a/sysutils/fam/Makefile     Thu Jan 25 10:40:05 2018 +0000
+++ b/sysutils/fam/Makefile     Thu Jan 25 10:41:37 2018 +0000
@@ -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 @@
 
 .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



Home | Main Index | Thread Index | Old Index