Re: git: 348c10112de6 - main - devel/freebsd-gcc9: Build with -std=c++11.

From: John Baldwin <jhb_at_FreeBSD.org>
Date: Wed, 05 Jul 2023 16:42:29 UTC
On 7/4/23 8:29 PM, Alexey Dokuchaev wrote:
> On Tue, Jul 04, 2023 at 05:14:37PM +0000, John Baldwin wrote:
>> commit 348c10112de61df7e66ea2d5a190700213542caa
>>
>>    devel/freebsd-gcc9: Build with -std=c++11.
>>
>>    This works around errors from clang from LLVM16 due to -Wregister
>>    warnings that are fatal in the default C++ standard (C++17) used by
>>    clang 16.
>> ---
>> @@ -26,6 +26,8 @@ TARGETARCH=	${FLAVOR}
>>   USES=		compiler:c++11-lang cpe gmake iconv libtool makeinfo tar:xz
>>   CPE_VENDOR=	gnu
>>   
>> +CXXFLAGS+=	-std=c++11
>> +
> 
> We have USE_CXXSTD for that in the b.p.m.

Hmm, my grep fu couldn't find that and I found many existing examples of
this approach.  I will fix it as a followup.

-- 
John Baldwin