[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
- [PATCH 0/5] Configure cleanups and a fix, Glenn Washburn, 2022/03/18
- [PATCH 1/5] configure: Allow HOST_CC to override CC,
Glenn Washburn <=
- [PATCH 2/5] configure: Sort AM_CONDITIONALs alphabetically, Glenn Washburn, 2022/03/18
- [PATCH 3/5] configure: Remove dead code, Glenn Washburn, 2022/03/18
- [PATCH 4/5] configure: Remove unused CFLAGS definitions, Glenn Washburn, 2022/03/18
- [PATCH 5/5] configure: Whitespace changes to improve readability, Glenn Washburn, 2022/03/18
- Re: [PATCH 0/5] Configure cleanups and a fix, Daniel Kiper, 2022/03/24