Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 5 Jul 2023 09:42:29 -0700
From:      John Baldwin <jhb@FreeBSD.org>
To:        Alexey Dokuchaev <danfe@freebsd.org>
Cc:        ports-committers@freebsd.org, dev-commits-ports-all@freebsd.org, dev-commits-ports-main@freebsd.org
Subject:   Re: git: 348c10112de6 - main - devel/freebsd-gcc9: Build with -std=c++11.
Message-ID:  <ed89bc7e-255e-e038-196f-44fa4b42965f@FreeBSD.org>
In-Reply-To: <ZKTjj84P5XCzuGzG@FreeBSD.org>
References:  <202307041714.364HEbPI098704@gitrepo.freebsd.org> <ZKTjj84P5XCzuGzG@FreeBSD.org>

next in thread | previous in thread | raw e-mail | index | archive | help
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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?ed89bc7e-255e-e038-196f-44fa4b42965f>