Skip to content

Conversation

@Ansuel
Copy link

@Ansuel Ansuel commented Nov 20, 2025

In the context of cross compilation the CPPFLAGS for the target might be
different than the one for build tools.

Permit to provide custom CPPFLAGS_FOR_BUILD value to handle this
scenario.

On building build tools, only CC_FOR_BUILD is used with
CPPFLAGS_FOR_BUILD never actually passed. This was probably an oversight
when CPPFLAGS_FOR_BUILD was introduced.

This is especially needed on cross compilation where the header are
placed on a standard location.

To address this case, and make building build tool more robust, actually
pass the CPPFLAGS_FOR_BUILD for each tool.

In the context of cross compilation the CPPFLAGS for the target might be
different than the one for build tools.

Permit to provide custom CPPFLAGS_FOR_BUILD value to handle this
scenario.

Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
On building build tools, only CC_FOR_BUILD is used with
CPPFLAGS_FOR_BUILD never actually passed. This was probably an oversight
when CPPFLAGS_FOR_BUILD was introduced.

This is especially needed on cross compilation where the header are
placed on a standard location.

To address this case, and make building build tool more robust, actually
pass the CPPFLAGS_FOR_BUILD for each tool.

Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
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 this pull request may close these issues.

1 participant