From ede1f87890cd1dc76321988bf3ca5036cc7ad4e1 Mon Sep 17 00:00:00 2001 From: Mark Linimon Date: Wed, 6 Feb 2019 00:14:18 +0000 Subject: [PATCH] CXXFLAGS+=-Wno-c++11-narrowing is not supported by base GCC. Instead add USE_CXXSTD=c++98 which makes this port compile by both base GCC and Clang. PR: 235527 Submitted by: Piotr Kubaj --- comms/gsmlib/Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/comms/gsmlib/Makefile b/comms/gsmlib/Makefile index b590418f0854..60db9bcb6b96 100644 --- a/comms/gsmlib/Makefile +++ b/comms/gsmlib/Makefile @@ -17,13 +17,13 @@ LICENSE= LGPL20 LICENSE_FILE= ${WRKSRC}/COPYING USES= gmake libtool +USE_CXXSTD= c++98 USE_LDCONFIG= yes GNU_CONFIGURE= yes INSTALL_TARGET= install-strip CPPFLAGS+= -DBROKEN_STRFTIME -DHAVE_DECL_GETOPT LDFLAGS+= -lpthread -CXXFLAGS+= -Wno-c++11-narrowing OPTIONS_DEFINE= NLS OPTIONS_SUB= yes