[yocto] How to get autotools to use C++11 under 'danny'

Chris Tapp opensource at keylevel.com
Fri Oct 17 13:53:24 PDT 2014


On 17 Oct 2014, at 20:17, Maciej Borzecki <maciej.borzecki at open-rnd.pl> wrote:

> On Friday 17 of October 2014 17:47:29 Chris Tapp wrote:
>> Does anybody know what I need to add to my configure.ac to get C++11 (or
>> C++0x) support added to the gcc flags at compile time?
>> 
>> I've tried using:
>> 
>>   AC_LANG([C++])
>>   AC_PROG_CXX
>>   AX_CXX_COMPILE_STDCXX_11([noext])
>> 
>> But that fails at configure time.
> Care for posting how exactly that fails?

Ah - I meant to say "with a syntax error" !

> Besides AX_CXX_COMPILE_STDCXX_11 is part of autoconf-archive. Adding autoconf-
> archive to DEPENDS might help. You could also dump the macro directly into say 
> m4 dir in your source package and add EXTRA_AUTORECONF_append = "-I${S}/m4" 
> the recipe.

Thanks, I'll have a look at that. In the mean time I've added CFLAGS+=" -std=c++x0" to get me going.

> 
> -- 
> 
> Maciej Borzęcki 
> Senior Software Engineer Open-RnD Sp. z o.o. 
> www.open-rnd.pl, Facebook, Twitter 
> mobile: +48 telefon, fax: +48 42 657 9079 
> 
> Niniejsza wiadomość wraz z załącznikami może zawierać chronione prawem lub 
> poufne informacje i została wysłana wyłącznie do wiadomości i użytku osób, do 
> których została zaadresowana. Jeśli wiadomość została otrzymana przypadkowo 
> zabrania się jej kopiowania lub rozsyłania do osób trzecich. W takim przypadku 
> uprasza się o natychmiastowe zniszczenie wiadomości oraz poinformowanie 
> nadawcy o zaistniałej sytuacji za pomocą wiadomości zwrotnej. Dziękujemy. 
> 
> This message, including any attachments hereto, may contain privileged or 
> confidential information and is sent solely for the attention and use of the 
> intended addressee(s). If you are not an intended addressee, you may neither 
> use this message nor copy or deliver it to anyone. In such case, you should 
> immediately destroy this message and kindly notify the sender by reply email. 
> Thank you.

--

Chris Tapp
opensource at keylevel.com
www.keylevel.com

----
You can tell you're getting older when your car insurance gets real cheap!




More information about the yocto mailing list