Gentoo Archives: gentoo-dev

From: "Anthony G. Basile" <blueness@g.o>
To: gentoo-dev@l.g.o
Subject: Re: [gentoo-dev] How to support C++11 in libraries?
Date: Thu, 19 Dec 2013 16:00:06
Message-Id: 52B31819.2010904@gentoo.org
In Reply to: Re: [gentoo-dev] How to support C++11 in libraries? by "Jan Kundrát"
1 On 12/19/2013 10:23 AM, Jan Kundrát wrote:
2 > On Thursday, 19 December 2013 16:00:13 CEST, Ian Stakenvicius wrote:
3 >> A change in profiles? 14.0/* adds that to the default CXXFLAGS in
4 >> base, new stage3's etc are all rolled with this. We recommend
5 >> migration to 14.0 profile and have a check somewhere about
6 >> "-std=c++11" missing from CXXFLAGS in case it's overridden in
7 >> make.conf, so users put it in place?
8 >
9 > Before you invest any more time in this, please understand that C++98
10 > and C++11 are source-incompatible. There is no way to expect that a
11 > package builds fine when you throw -std=c++11 on it. And even if you
12 > patched them all, you are breaking an unknown number of 3rd party
13 > software over which you have exactly zero control.
14 >
15 > Also note that as of gcc 4.8, the C++11 support is still labeled as
16 > experimental and upstream developers announced they will introduce ABI
17 > breaks in future.
18 >
19 > With kind regards,
20 > Jan
21 >
22 >
23 I would look to gcc-4.9 for C++11. By that point many upstream
24 providers will start to feel the pressure and patch for us.
25
26 --
27 Anthony G. Basile, Ph.D.
28 Gentoo Linux Developer [Hardened]
29 E-Mail : blueness@g.o
30 GnuPG FP : 1FED FAD9 D82C 52A5 3BAB DC79 9384 FA6E F52D 4BBA
31 GnuPG ID : F52D4BBA