Blame SOURCES/libtool-2.4.6-am-1.16-test.patch

765b1f
Ensure that $(LIBLTDL) is built first
765b1f
765b1f
After Automake upstream commit f4e91bfc490d, the list in 'all-am:' is
765b1f
reordered for this test-case (*_LTLIBRARIES is before *_PROGRAMS), which
765b1f
means that linker will fail to link 'old' binary.
765b1f
765b1f
Previously (with automake <= 1.16), it was matter of luck -- it worked if
765b1f
(a) the build was serial (-j1), and/or (b) libtool-ltdl-devel package was
765b1f
installed on the box so ./configure picked the system version of libltdl.
765b1f
765b1f
Users should anyways use system's ltdl, so this has low priority.
765b1f
765b1f
diff --git a/tests/old-ltdl-iface.at b/tests/old-ltdl-iface.at
765b1f
index cee29089..6f9c8001 100644
765b1f
--- a/tests/old-ltdl-iface.at
765b1f
+++ b/tests/old-ltdl-iface.at
765b1f
@@ -62,6 +62,9 @@ MOSTLYCLEANFILES =
765b1f
 include ltdl/Makefile.inc
765b1f
 bin_PROGRAMS = old
765b1f
 old_LDADD = -Lltdl $(LIBLTDL)
765b1f
+# TODO: if --with-included-ltdl was unused this would
765b1f
+# generate useless dependency.
765b1f
+old_DEPENDENCIES = $(LIBLTDL)
765b1f
 ]])
765b1f
 
765b1f
 AT_DATA([old.c],
765b1f
@@ -131,7 +134,7 @@ LT_AT_CHECK_LIBTOOLIZE([--ltdl=ltdl --nonrecursive --install], 0, [expout], [exp
765b1f
 
765b1f
 AT_CHECK([test -f ltdl/Makefile.inc])
765b1f
 
765b1f
-LT_AT_BOOTSTRAP([ignore], [-I m4], [], [--add-missing], [--force])
765b1f
+LT_AT_BOOTSTRAP([ignore], [-I m4], [], [--add-missing], [--force], [--with-included-ltdl])
765b1f
 
765b1f
 LT_AT_EXEC_CHECK([./old], 0, [[...]])
765b1f