Signed-off-by: Khem Raj <raj.k...@gmail.com> --- .../0001-Use-cross-AR-during-compile.patch | 35 +++++++++++++++++++ meta/recipes-extended/gawk/gawk_5.1.0.bb | 1 + 2 files changed, 36 insertions(+) create mode 100644 meta/recipes-extended/gawk/gawk/0001-Use-cross-AR-during-compile.patch
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 @@ +From 207b94e37c84007b294e57878c913271aad544ef Mon Sep 17 00:00:00 2001 +From: Khem Raj <raj.k...@gmail.com> +Date: Wed, 11 Nov 2020 23:13:23 -0800 +Subject: [PATCH] Use cross AR during compile + +If AR is specifcied then it should be used instead of defaulting to 'ar' +from host + +Upstream-Status: Pending +Signed-off-by: Khem Raj <raj.k...@gmail.com> +--- + configure.ac | 7 +++++++ + 1 file changed, 7 insertions(+) + +diff --git a/configure.ac b/configure.ac +index 31364ab..4804f7b 100644 +--- a/configure.ac ++++ b/configure.ac +@@ -92,6 +92,13 @@ GAWK_CANONICAL_HOST + AC_USE_SYSTEM_EXTENSIONS + + dnl checks for programs ++m4_ifndef([AC_PROG_AR],[dnl ++ AN_MAKEVAR([AR], [AC_PROG_AR]) ++ AN_PROGRAM([ar], [AC_PROG_AR]) ++ AC_DEFUN([AC_PROG_AR], ++ [AC_CHECK_TOOL(AR, ar, :)]) ++]) ++AC_PROG_AR + AC_PROG_EGREP + AC_PROG_YACC + AC_PROG_LN_S +-- +2.29.2 + 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" SRC_URI = "${GNU_MIRROR}/gawk/gawk-${PV}.tar.gz \ file://run-ptest \ + file://0001-Use-cross-AR-during-compile.patch \ " SRC_URI[md5sum] = "f719bc9966df28e67fc6ebc405e7ea03" -- 2.29.2
-=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#144492): https://lists.openembedded.org/g/openembedded-core/message/144492 Mute This Topic: https://lists.openembedded.org/mt/78201767/21656 Group Owner: openembedded-core+ow...@lists.openembedded.org Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub [arch...@mail-archive.com] -=-=-=-=-=-=-=-=-=-=-=-