diff options
author | Glenn Washburn <development@efficientek.com> | 2022-03-18 01:41:35 -0500 |
---|---|---|
committer | Daniel Kiper <daniel.kiper@oracle.com> | 2022-04-04 18:24:39 +0200 |
commit | e595a7e4e0a619f0e3b08c659cb513587e74d14f (patch) | |
tree | 60f2b9cd01911277922834144ac2a0998aacc175 | |
parent | b0da8d3d35162de9f39ed667a85623632900faa3 (diff) | |
download | grub-e595a7e4e0a619f0e3b08c659cb513587e74d14f.tar.gz |
configure: Allow HOST_CC to override CC
According to the INSTALL, "The HOST_* variables override not prefixed
variables". This change makes it so, instead of previous behavior, which
was to ignore the HOST_CC environment variable.
Signed-off-by: Glenn Washburn <development@efficientek.com>
Reviewed-by: Daniel Kiper <daniel.kiper@oracle.com>
-rw-r--r-- | configure.ac | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac index 3ffbc7c57..7c08ec1be 100644 --- a/configure.ac +++ b/configure.ac @@ -79,6 +79,11 @@ grub_TRANSFORM([grub-sparc64-setup]) grub_TRANSFORM([grub-render-label]) grub_TRANSFORM([grub-file]) +# Allow HOST_CC to override CC. +if test "x$HOST_CC" != x; then + CC=$HOST_CC +fi + # Optimization flag. Allow user to override. if test "x$TARGET_CFLAGS" = x; then TARGET_CFLAGS=-Os |