grub-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[PATCH 1/5] configure: Allow HOST_CC to override CC


From: Glenn Washburn
Subject: [PATCH 1/5] configure: Allow HOST_CC to override CC
Date: Fri, 18 Mar 2022 01:41:35 -0500

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>
---
 configure.ac | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/configure.ac b/configure.ac
index 3b8be28d9d..387ac22b86 100644
--- a/configure.ac
+++ b/configure.ac
@@ -78,6 +78,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
-- 
2.27.0




reply via email to

[Prev in Thread] Current Thread [Next in Thread]