How to add -std=gnu++11 to CXXFLAGS?

Sebastian Huber sebastian.huber at embedded-brains.de
Mon Jun 30 08:38:20 UTC 2014


On 2014-06-26 12:50, Sebastian Huber wrote:
> Hello,
>
> for SMP support we need atomic operations.  We use the ones provided by the C11
> and C++11 standards.  For this it is necessary to use -std=gnu++11 as a GCC
> option since otherwise an include of <atomic> yields to compile time errors.
> Does anyone know how to add this option to the CXXFLAGS in our build system?
>

With this change

http://git.rtems.org/rtems/commit/?id=89f8eab5822163f9cd619828ec7191c33d868f9b

we have now a compile time error with C++ and SMP enabled for GCC 4.9 and later 
unless we manage to add -std=gnu++11 to the CXXFLAGS.

-- 
Sebastian Huber, embedded brains GmbH

Address : Dornierstr. 4, D-82178 Puchheim, Germany
Phone   : +49 89 189 47 41-16
Fax     : +49 89 189 47 41-09
E-Mail  : sebastian.huber at embedded-brains.de
PGP     : Public key available on request.

Diese Nachricht ist keine geschäftliche Mitteilung im Sinne des EHUG.


More information about the devel mailing list