summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMingli Yu <mingli.yu@windriver.com>2021-04-13 17:00:11 +0800
committerRichard Purdie <richard.purdie@linuxfoundation.org>2021-04-30 14:37:25 +0100
commit3c1f5940fb94793281c1df841a8bf2ea640c7048 (patch)
tree89a8b08b1c7e3c3475407debd6027e5f267052d1
parentd881748096274e847f27bdbbcb182c17ab1282d4 (diff)
downloadpoky-3c1f5940fb94793281c1df841a8bf2ea640c7048.tar.gz
libtool: make sure autoheader run before automake
When use automake to generate Makefile.in from Makefile.am, there comes below race: | configure.ac:45: error: required file 'config-h.in' not found It is because the file config-h.in in updating process by autoheader, so make automake run after autoheader to avoid the above race. (From OE-Core rev: 55372f0b2d8c57954a704a967178c75d19e0af89) Signed-off-by: Mingli Yu <mingli.yu@windriver.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org> (cherry picked from commit 1fc0a4a98e65db7efba8bb5cb835101ea5dd865b) Signed-off-by: Anuj Mittal <anuj.mittal@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rw-r--r--meta/recipes-devtools/libtool/libtool-2.4.6.inc1
-rw-r--r--meta/recipes-devtools/libtool/libtool/0001-Makefile.am-make-sure-autoheader-run-before-automake.patch35
2 files changed, 36 insertions, 0 deletions
diff --git a/meta/recipes-devtools/libtool/libtool-2.4.6.inc b/meta/recipes-devtools/libtool/libtool-2.4.6.inc
index 19a03d4733..e9225e140c 100644
--- a/meta/recipes-devtools/libtool/libtool-2.4.6.inc
+++ b/meta/recipes-devtools/libtool/libtool-2.4.6.inc
@@ -22,6 +22,7 @@ SRC_URI = "${GNU_MIRROR}/libtool/libtool-${PV}.tar.gz \
22 file://0001-libtool-Fix-support-for-NIOS2-processor.patch \ 22 file://0001-libtool-Fix-support-for-NIOS2-processor.patch \
23 file://0001-libtool-Check-for-static-libs-for-internal-compiler-.patch \ 23 file://0001-libtool-Check-for-static-libs-for-internal-compiler-.patch \
24 file://0001-Makefile.am-make-sure-autoheader-run-before-autoconf.patch \ 24 file://0001-Makefile.am-make-sure-autoheader-run-before-autoconf.patch \
25 file://0001-Makefile.am-make-sure-autoheader-run-before-automake.patch \
25 " 26 "
26 27
27SRC_URI[md5sum] = "addf44b646ddb4e3919805aa88fa7c5e" 28SRC_URI[md5sum] = "addf44b646ddb4e3919805aa88fa7c5e"
diff --git a/meta/recipes-devtools/libtool/libtool/0001-Makefile.am-make-sure-autoheader-run-before-automake.patch b/meta/recipes-devtools/libtool/libtool/0001-Makefile.am-make-sure-autoheader-run-before-automake.patch
new file mode 100644
index 0000000000..87f8492346
--- /dev/null
+++ b/meta/recipes-devtools/libtool/libtool/0001-Makefile.am-make-sure-autoheader-run-before-automake.patch
@@ -0,0 +1,35 @@
1From e82c06584f02e3e4487aa73aa05981e2a35dc6d1 Mon Sep 17 00:00:00 2001
2From: Mingli Yu <mingli.yu@windriver.com>
3Date: Tue, 13 Apr 2021 07:17:29 +0000
4Subject: [PATCH] Makefile.am: make sure autoheader run before automake
5
6When use automake to generate Makefile.in from Makefile.am, there
7comes below race:
8 | configure.ac:45: error: required file 'config-h.in' not found
9
10It is because the file config-h.in in updating process by autoheader,
11so make automake run after autoheader to avoid the above race.
12
13Upstream-Status: Submitted [libtool-patches@gnu.org maillist]
14
15Signed-off-by: Mingli Yu <mingli.yu@windriver.com>
16---
17 Makefile.am | 2 +-
18 1 file changed, 1 insertion(+), 1 deletion(-)
19
20diff --git a/Makefile.am b/Makefile.am
21index 2752ecc..29950db 100644
22--- a/Makefile.am
23+++ b/Makefile.am
24@@ -328,7 +328,7 @@ EXTRA_DIST += $(lt_aclocal_m4) \
25 $(lt_obsolete_m4) \
26 $(stamp_mk)
27
28-$(lt_Makefile_in): $(lt_Makefile_am) $(lt_aclocal_m4)
29+$(lt_Makefile_in): $(lt_Makefile_am) $(lt_aclocal_m4) $(lt_config_h_in)
30 $(AM_V_GEN)cd '$(srcdir)/$(ltdl_dir)' && $(AUTOMAKE) Makefile
31
32 # Don't let unused scripts leak into the libltdl Makefile
33--
342.29.2
35