mirror of
https://git.savannah.gnu.org/git/grub.git
synced 2026-10-25 16:49:23 +00:00
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>
This commit is contained in:
1 parent
b0da8d3d35
commit
e595a7e4e0
1 file changed
+5
@@ -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
|
||||
|
||||
Reference in new issue
Block a user