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

Support AutoTools CC_FOR_BUILD variable #15486

Closed
1 task done
klausholstjacobsen opened this issue Jan 20, 2024 · 2 comments · Fixed by #16391
Closed
1 task done

Support AutoTools CC_FOR_BUILD variable #15486

klausholstjacobsen opened this issue Jan 20, 2024 · 2 comments · Fixed by #16391
Assignees
Milestone

Comments

@klausholstjacobsen
Copy link

klausholstjacobsen commented Jan 20, 2024

What is your suggestion?

Hello
Conan 2.0.16

I am cross building various packages.
I have both a build profile and host profile which both has tool_requires to their respective toolchain packages.
These toolchain packages define (among other things) tools.build:compiler_executables.
This works well in many cases.
But sometimes I come across packages that build with autotools and uses the CC_FOR_BUILD variable to find the compiler for the build host. These packages always find my system installed gcc. I do not want that.

I suggest that if I have a build profile that define tools.build:compiler_executables in the build context then AutoToolsToolchain should define the CC_FOR_BUILD variable to point to the compiler here.

Regards
Klaus

Have you read the CONTRIBUTING guide?

  • I've read the CONTRIBUTING guide
@memsharded
Copy link
Member

Hi @klausholstjacobsen

Sorry this was not responded back then.
There is this other thread that is touching the same aspect: #15878

@memsharded
Copy link
Member

#16391 merged, this will be released in next Conan 2.4 soon

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

Successfully merging a pull request may close this issue.

4 participants