summaryrefslogtreecommitdiffstats
path: root/meta/recipes-extended/gawk
diff options
context:
space:
mode:
authorKhem Raj <raj.khem@gmail.com>2020-11-11 23:25:05 -0800
committerRichard Purdie <richard.purdie@linuxfoundation.org>2020-11-13 14:32:00 +0000
commit8527cab92387e7a777f36ab958852a53279cc5c7 (patch)
tree2a1ef446c94092dcc08d0f080d6dfec884e50b69 /meta/recipes-extended/gawk
parente9b27348864d17225f315d40d8f08ec72d16b4a0 (diff)
downloadpoky-8527cab92387e7a777f36ab958852a53279cc5c7.tar.gz
gawk: Avoid using host ar during cross compile
(From OE-Core rev: 5bc83ca06d0d38a6eb9fcc0343d081021dafb2ce) Signed-off-by: Khem Raj <raj.khem@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-extended/gawk')
-rw-r--r--meta/recipes-extended/gawk/gawk/0001-Use-cross-AR-during-compile.patch35
-rw-r--r--meta/recipes-extended/gawk/gawk_5.1.0.bb1
2 files changed, 36 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
diff --git a/meta/recipes-extended/gawk/gawk_5.1.0.bb b/meta/recipes-extended/gawk/gawk_5.1.0.bb
index 0d005cd43b..8c6411c867 100644
--- a/meta/recipes-extended/gawk/gawk_5.1.0.bb
+++ b/meta/recipes-extended/gawk/gawk_5.1.0.bb
@@ -17,6 +17,7 @@ PACKAGECONFIG[mpfr] = "--with-mpfr,--without-mpfr, mpfr"
17 17
18SRC_URI = "${GNU_MIRROR}/gawk/gawk-${PV}.tar.gz \ 18SRC_URI = "${GNU_MIRROR}/gawk/gawk-${PV}.tar.gz \
19 file://run-ptest \ 19 file://run-ptest \
20 file://0001-Use-cross-AR-during-compile.patch \
20" 21"
21 22
22SRC_URI[md5sum] = "f719bc9966df28e67fc6ebc405e7ea03" 23SRC_URI[md5sum] = "f719bc9966df28e67fc6ebc405e7ea03"