Andrew Geissler | 6ce62a2 | 2020-11-30 19:58:47 -0600 | [diff] [blame] | 1 | From ecdcf0df6c28c65ca6d1e5638726e13e373c76c5 Mon Sep 17 00:00:00 2001 |
| 2 | From: Khem Raj <raj.khem@gmail.com> |
| 3 | Date: Wed, 11 Nov 2020 22:58:55 -0800 |
| 4 | Subject: [PATCH] Fix cross compilation using autoconf detected AR |
| 5 | |
| 6 | currently its using 'ar' program from build host, which is not expected, |
| 7 | we need to respect AR passed in environment |
| 8 | |
| 9 | Upstream-Status: Pending |
| 10 | |
| 11 | Signed-off-by: Khem Raj <raj.khem@gmail.com> |
| 12 | --- |
| 13 | configure.in | 7 +++++++ |
| 14 | 1 file changed, 7 insertions(+) |
| 15 | |
| 16 | diff --git a/configure.in b/configure.in |
| 17 | index 4ddbe8b..b7c3c31 100644 |
| 18 | --- a/configure.in |
| 19 | +++ b/configure.in |
| 20 | @@ -84,6 +84,13 @@ AC_ARG_ENABLE(syslog, |
| 21 | ]) |
| 22 | |
| 23 | dnl Checks for programs. |
| 24 | +m4_ifndef([AC_PROG_AR],[dnl |
| 25 | + AN_MAKEVAR([AR], [AC_PROG_AR]) |
| 26 | + AN_PROGRAM([ar], [AC_PROG_AR]) |
| 27 | + AC_DEFUN([AC_PROG_AR], |
| 28 | + [AC_CHECK_TOOL(AR, ar, :)]) |
| 29 | +]) |
| 30 | +AC_PROG_AR |
| 31 | AC_PROG_CC |
| 32 | AC_PROG_GCC_TRADITIONAL |
| 33 | dnl AC_PROG_INSTALL included in AM_INIT_AUTOMAKE |
| 34 | -- |
| 35 | 2.29.2 |
| 36 | |