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 15:51:38
Message-Id: 52B3161B.8060704@gentoo.org
In Reply to: Re: [gentoo-dev] How to support C++11 in libraries? by Ian Stakenvicius
1 On 12/19/2013 10:00 AM, Ian Stakenvicius wrote:
2 > -----BEGIN PGP SIGNED MESSAGE-----
3 > Hash: SHA256
4 >
5 > On 19/12/13 04:07 AM, Michał Górny wrote:
6 >> Dnia 2013-12-19, o godz. 09:58:25 Sven Eden <sven.eden@×××.de>
7 >> napisał(a):
8 >>
9 >>> So I'd go the reverse way. Make CXXFLAGS="-std=c++11" the
10 >>> default, and only override this for packages that do fishy stuff
11 >>> and break with it.
12 >> How can we do that? I think the only possibility is to patch gcc
13 >> and change the default...
14 >>
15 > A change in profiles? 14.0/* adds that to the default CXXFLAGS in
16 > base, new stage3's etc are all rolled with this. We recommend
17 > migration to 14.0 profile and have a check somewhere about
18 > "-std=c++11" missing from CXXFLAGS in case it's overridden in
19 > make.conf, so users put it in place?
20
21 If we are going to make -std=c++11 the default, I would do it in the gcc
22 spec files and then override it with CXXFLAGS if USE=-c++11.
23
24 --
25 Anthony G. Basile, Ph.D.
26 Gentoo Linux Developer [Hardened]
27 E-Mail : blueness@g.o
28 GnuPG FP : 1FED FAD9 D82C 52A5 3BAB DC79 9384 FA6E F52D 4BBA
29 GnuPG ID : F52D4BBA