[systemd-devel] [PATCH 1/2] configure: allow setting EFI_CC

Marc-Antoine Perennou Marc-Antoine at Perennou.com
Wed Apr 8 13:08:20 PDT 2015


and only fallback to gcc
---
 configure.ac | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/configure.ac b/configure.ac
index 1608c83..0722841 100644
--- a/configure.ac
+++ b/configure.ac
@@ -1147,8 +1147,8 @@ fi
 AM_CONDITIONAL(ENABLE_EFI, [test "x$have_efi" = "xyes"])
 
 # ------------------------------------------------------------------------------
-EFI_CC=gcc
-AC_SUBST([EFI_CC])
+AC_ARG_VAR(EFI_CC, [Compiler to be used for EFI stub])
+test -z "$ac_cv_env_EFI_CC_value" && EFI_CC=gcc
 
 EFI_ARCH=`echo $host | sed "s/\(-\).*$//"`
 
-- 
2.3.3



More information about the systemd-devel mailing list