Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] Add BR2_EXTRA_CXX_FLAGS to be appended to TARGET_CXXFLAGS
@ 2020-02-18  9:45 lpdev at cordier.org
  2020-02-18 16:02 ` Thomas Petazzoni
  0 siblings, 1 reply; 2+ messages in thread
From: lpdev at cordier.org @ 2020-02-18  9:45 UTC (permalink / raw)
  To: buildroot

Dear all,



For some reason, I need to disable cxx11 ABI on my entire buildroot build. AFAIK, it is currently not possible to set project-wide cxx flag, like _GLIBCXX_USE_CXX11_ABI=0. Currently this flag has to be set on all package manually.



After studying a bit the buildroot makefiles, TARGET_CXXFLAGS is populated by some buildroot options, such as BR2_BINFMT_FLAT, etc.



I see 2 possible solutions to solve that:



- at the buildroot build level, add an option like BR2_USE_CXX11_ABI, or more generally, BR2_EXTRA_CXX_FLAGS (that can be extended to cflags as well).

- at the buildroot toolchain build level, add an option in the buildroot toolchain that allows to control the CXX11 ABI



What do you think about that?



Thanks



Louis-Paul CORDIER


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.busybox.net/pipermail/buildroot/attachments/20200218/0a05770d/attachment.html>

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2020-02-18 16:02 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-02-18  9:45 [Buildroot] Add BR2_EXTRA_CXX_FLAGS to be appended to TARGET_CXXFLAGS lpdev at cordier.org
2020-02-18 16:02 ` Thomas Petazzoni

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox