* automake.in (generate_makefile): If nobase_lib_LTLIBRARIES are
used, add an ugly hack to install them before bin_PROGRAMS, just
like done with lib_LTLIBRARIES.
* tests/ltorder.test: Add program, to expose this.
Signed-off-by: Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
2008-09-20 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
+ Install nobase_lib_LTLIBRARIES before bin_PROGRAMS.
+ * automake.in (generate_makefile): If nobase_lib_LTLIBRARIES are
+ used, add an ugly hack to install them before bin_PROGRAMS, just
+ like done with lib_LTLIBRARIES.
+ * tests/ltorder.test: Add program, to expose this.
+
Do not reorder nobase ltlib installation.
This patch changes back the order of installation of nobase
LTLIBRARIES to that in which files are listed in the variables.
{
$output_rules .= "install-binPROGRAMS: install-libLTLIBRARIES\n\n";
}
+ if (var ('nobase_lib_LTLIBRARIES') && var ('bin_PROGRAMS'))
+ {
+ $output_rules .= "install-binPROGRAMS: install-nobase_libLTLIBRARIES\n\n";
+ }
handle_install;
handle_clean ($makefile);
sub_liba3_la_LIBADD = sub/liba2.la
liba4_la_LIBADD = sub/liba3.la
liba5_la_LIBADD = liba4.la
+bin_PROGRAMS = p
+p_LDADD = liba5.la
END
mkdir sub
echo 'extern int a2 (); int a3 () { return a2 (); }' >sub/liba3.c
echo 'extern int a3 (); int a4 () { return a3 (); }' >liba4.c
echo 'extern int a4 (); int a5 () { return a4 (); }' >liba5.c
+echo 'extern int a5 (); int main () { return a5 (); }' >p.c
libtoolize
$ACLOCAL