summaryrefslogtreecommitdiffstats
path: root/meta/recipes-extended/gawk/gawk/0001-Use-cross-AR-during-compile.patch
diff options
context:
space:
mode:
Diffstat (limited to 'meta/recipes-extended/gawk/gawk/0001-Use-cross-AR-during-compile.patch')
-rw-r--r--meta/recipes-extended/gawk/gawk/0001-Use-cross-AR-during-compile.patch35
1 files changed, 35 insertions, 0 deletions
diff --git a/meta/recipes-extended/gawk/gawk/0001-Use-cross-AR-during-compile.patch b/meta/recipes-extended/gawk/gawk/0001-Use-cross-AR-during-compile.patch
new file mode 100644
index 0000000000..ca0d668ce9
--- /dev/null
+++ b/meta/recipes-extended/gawk/gawk/0001-Use-cross-AR-during-compile.patch
@@ -0,0 +1,35 @@
1From 207b94e37c84007b294e57878c913271aad544ef Mon Sep 17 00:00:00 2001
2From: Khem Raj <raj.khem@gmail.com>
3Date: Wed, 11 Nov 2020 23:13:23 -0800
4Subject: [PATCH] Use cross AR during compile
5
6If AR is specifcied then it should be used instead of defaulting to 'ar'
7from host
8
9Upstream-Status: Pending
10Signed-off-by: Khem Raj <raj.khem@gmail.com>
11---
12 configure.ac | 7 +++++++
13 1 file changed, 7 insertions(+)
14
15diff --git a/configure.ac b/configure.ac
16index 31364ab..4804f7b 100644
17--- a/configure.ac
18+++ b/configure.ac
19@@ -92,6 +92,13 @@ GAWK_CANONICAL_HOST
20 AC_USE_SYSTEM_EXTENSIONS
21
22 dnl checks for programs
23+m4_ifndef([AC_PROG_AR],[dnl
24+ AN_MAKEVAR([AR], [AC_PROG_AR])
25+ AN_PROGRAM([ar], [AC_PROG_AR])
26+ AC_DEFUN([AC_PROG_AR],
27+ [AC_CHECK_TOOL(AR, ar, :)])
28+])
29+AC_PROG_AR
30 AC_PROG_EGREP
31 AC_PROG_YACC
32 AC_PROG_LN_S
33--
342.29.2
35