]> git.puffer.fish Git - matthieu/frr.git/commitdiff
build: add more precious variables for cross-compilation
authorEmanuele Bovisio <emanuele.bovisio@eolo.it>
Fri, 30 Oct 2020 17:39:00 +0000 (18:39 +0100)
committerEmanuele Bovisio <emanuele.bovisio@eolo.it>
Fri, 6 Nov 2020 16:42:40 +0000 (17:42 +0100)
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 <emanuele.bovisio@eolo.it>
configure.ac

index 237552c1408b0c2c380ea94e857f9b8b2bee445f..8443f4171adce5bee056c7393058485391010ebe 100755 (executable)
@@ -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"