blob: 348cd3c1ae886c5c50cccd0c02b343ab09832871 [file] [log] [blame]
Andrew Geisslereff27472021-10-29 15:35:00 -05001From: Mingli Yu <mingli.yu@windriver.com>
2Subject: [PATCH 09/12] Makefile.am: make sure autoheader run before autoconf
3
4autoheader will update ../libtool-2.4.6/libltdl/config-h.in which
5autoconf needs, so there comes a race sometimes as below:
6 | configure.ac:45: error: required file 'config-h.in' not found
7 | touch '../libtool-2.4.6/libltdl/config-h.in'
8
9So make sure autoheader run before autoconf to avoid this race.
10
11Signed-off-by: Mingli Yu <mingli.yu@windriver.com>
12Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
13
14Upstream-Status: Submitted [https://lists.gnu.org/archive/html/libtool-patches/2021-10/msg00015.html]
15
16---
17 Makefile.am | 2 +-
18 1 file changed, 1 insertion(+), 1 deletion(-)
19
20diff --git a/Makefile.am b/Makefile.am
21index 4142c90..fe1a9fc 100644
22--- a/Makefile.am
23+++ b/Makefile.am
24@@ -365,7 +365,7 @@ lt_configure_deps = $(lt_aclocal_m4) $(lt_aclocal_m4_deps)
25 $(lt_aclocal_m4): $(lt_aclocal_m4_deps)
26 $(AM_V_GEN)cd '$(srcdir)/$(ltdl_dir)' && $(ACLOCAL) -I ../m4
27
28-$(lt_configure): $(lt_configure_deps)
29+$(lt_configure): $(lt_configure_deps) $(lt_config_h_in)
30 $(AM_V_GEN)cd '$(srcdir)/$(ltdl_dir)' && $(AUTOCONF)
31
32 $(lt_config_h_in): $(lt_configure_deps)
33--
342.29.2
35