Skip to content
Discussion options

You must be logged in to vote

But: OpenWrt uses the musl libc, and thus needs -D_GLIBCXX_USE_CXX11_ABI=0 set.

_GLIBCXX_USE_CXX11_ABI controls the ABI used within libstdc++, which is normally built as part of GCC. So, unless this is a misunderstanding on my part (in which case, please explain!), whether or not musl is your libc has no bearing on whether you should compile with _GLIBCXX_USE_CXX11_ABI set to a particular value. Despite the name of the macro, it has nothing to do with Glibc.

You should use _GLIBCXX_USE_CXX11_ABI=0 if you are building with GCC 5 or 6, and _GLIBCXX_USE_CXX_ABI=1 if building with GCC 7. However even for GCC 6 and 7 this is no longer required with the current point releases, since I note th…

Replies: 2 comments 2 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
2 replies
@IngwiePhoenix
Comment options

@davmac314
Comment options

Answer selected by IngwiePhoenix
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
Question Build-issue Something that affects build process of Dinit make Things about Dinit's Make build process
3 participants
Converted from issue

This discussion was converted from issue #153 on January 28, 2023 20:21.