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

Sebastian Huber sebastian.huber at
Thu Jun 26 10:50:36 UTC 2014


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?

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
PGP     : Public key available on request.

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

More information about the devel mailing list