Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

b2: recipe doesn't respect tools.build:compiler_executables #24020

Open
TheClonerx opened this issue May 17, 2024 · 0 comments
Open

b2: recipe doesn't respect tools.build:compiler_executables #24020

TheClonerx opened this issue May 17, 2024 · 0 comments

Comments

@TheClonerx
Copy link
Contributor

b2 has an option b2/*:use_cxx_env=True which is intended to pass a custom compiler and flags when using the b2/*:toolset=cxx option.
However, the current recipe does not respect the following conf values:

  • tools.build:compiler_executables
  • tools.build:cxxflags
  • tools.build:defines
  • tools.build:exelinkflags

Because of this, compilation of b2 will use the wrong compiler and flags.

Additionally, because this recipe will only respect buildenv.CXX & buildenv.CXXFLAGS, even when set correctly, no link options are passed to the build.
On my system that has multiple gcc installations this causes symbol errors at startup due to trying to use shared linking with libstdc++11, despite me setting conf.tools.build:exelinkflags to ["-static-libgcc", "-static-libstdc++"]

@TheClonerx TheClonerx changed the title b2: recipe doesn't respect tools.build:compiler_executables while building b2: recipe doesn't respect tools.build:compiler_executables May 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant