-
Notifications
You must be signed in to change notification settings - Fork 42
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[build] Attempt to respect external tool choices
Attempt to respect external tool choices via variables such as $(CC), $(AS), $(LD), $(AR), etc. Cross-compiling versions of gcc are typically installed as e.g. aarch64-linux-gnu-gcc rather than aarch64-linux-gnu-cc, and so a naive expansion of $(CROSS_arm64)$(CC) would not produce the correct binary name in the common case that $(CC) is set to "cc". Work around this quirk by redefining $(CC) as "gcc" if the detected compiler claims to be gcc (i.e. defines the __GNUC__ macro). Signed-off-by: Michael Brown <[email protected]>
- Loading branch information
Showing
1 changed file
with
36 additions
and
25 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters