From 20fdd70fd037a2f04b4d8066b096d81779abd171 Mon Sep 17 00:00:00 2001 From: Emanuele Bovisio Date: Fri, 30 Oct 2020 18:39:00 +0100 Subject: [PATCH] build: add more precious variables for cross-compilation Using AC_ARG_VAR function, it's possible to add LD, AR, OBJCOPY, OBJDUMP, RANLIB and STRIP to the list of precious variables in $ac_precious_vars for configure tool. Doing this, we are enabling a new set of variables (HOST_LD, HOST_AR, HOST_OBJCOPY, HOST_OBJDUMP, HOST_RANLIB and HOST_STRIP) useful for cross-compiling when the target toolchain is prepending a prefix to these tools. Signed-off-by: Emanuele Bovisio --- configure.ac | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/configure.ac b/configure.ac index 237552c140..8443f4171a 100755 --- a/configure.ac +++ b/configure.ac @@ -25,6 +25,13 @@ dnl ----------------------------------- AC_CANONICAL_BUILD() AC_CANONICAL_HOST() +AC_ARG_VAR([AR],[archiver command]) +AC_ARG_VAR([LD],[linker command]) +AC_ARG_VAR([OBJCOPY],[objcopy command]) +AC_ARG_VAR([OBJDUMP],[objdump command]) +AC_ARG_VAR([RANLIB],[ranlib command]) +AC_ARG_VAR([STRIP],[strip command]) + hosttools_clippy="false" build_clippy="true" -- 2.39.5