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

Maciej Borzecki maciej.borzecki at open-rnd.pl
Fri Oct 17 12:17:53 PDT 2014


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?

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.

-- 

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. 



More information about the yocto mailing list