]> git.ipfire.org Git - thirdparty/automake.git/commitdiff
Install nobase_lib_LTLIBRARIES before bin_PROGRAMS.
authorRalf Wildenhues <Ralf.Wildenhues@gmx.de>
Sat, 20 Sep 2008 11:02:23 +0000 (13:02 +0200)
committerRalf Wildenhues <Ralf.Wildenhues@gmx.de>
Sat, 20 Sep 2008 11:02:23 +0000 (13:02 +0200)
* 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>
ChangeLog
automake.in
tests/ltorder.test

index 364b3fd52c36b6bb6c058ca55cbf5fe76f915910..79cac905a3c253ded11fad647543f22856a78b90 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,11 @@
 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.
index 54f68657bf7742a88d93b0d798cb7ebbdb83e544..796f17d83b777c8b54fdf70c32749e3b46448998 100755 (executable)
@@ -7680,6 +7680,10 @@ sub generate_makefile ($$)
     {
       $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);
index 999400806aa3caf755daca074d7e787cefd6c48f..1d1e65eb72b72722fd46b165e36c8f530e942352 100755 (executable)
@@ -33,6 +33,8 @@ sub_liba2_la_LIBADD = liba1.la
 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
@@ -41,6 +43,7 @@ echo 'extern int a1 (); int a2 () { return a1 (); }' >sub/liba2.c
 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