]> git.ipfire.org Git - thirdparty/libtool.git/commitdiff
* ltmain.in: reworded `dropped inter-library dependencies'
authorAlexandre Oliva <oliva@dcc.unicamp.br>
Tue, 26 Jan 1999 19:21:29 +0000 (19:21 +0000)
committerAlexandre Oliva <aoliva@redhat.com>
Tue, 26 Jan 1999 19:21:29 +0000 (19:21 +0000)
message, and added a warning about inter-library dependencies even
for non-module builds

ChangeLog
ltmain.in

index a691736b54c5b08d6b6985cbe09bfb41935efc7d..6894d583f883cca5624bcc6c1291924bde3cf3a4 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+1999-01-26  Alexandre Oliva  <oliva@dcc.unicamp.br>
+
+       * ltmain.in: reworded `dropped inter-library dependencies'
+       message, and added a warning about inter-library dependencies even 
+       for non-module builds
+
 1999-01-26  Gary V. Vaughan  <gvaughan@oranda.demon.co.uk>
 
        * Makefile.am (install-data-hook): Don't show the if expression
index 87115e71df2f2dddbcb95dda0377649453e3f02c..f42bf181714fc1e6e88adae97889bcfcf1e303c7 100644 (file)
--- a/ltmain.in
+++ b/ltmain.in
@@ -1742,6 +1742,13 @@ EOF
        none | unknown | *) newdeplibs=""
          if $echo "X$deplibs" | $Xsed -e 's/ -lc$//' -e 's/[   ]//g' \
             | grep . >/dev/null; then
+           echo
+           if test "X$deplibs_check_method" = "Xnone"; then
+             echo "*** Warning: inter-library dependencies are not supported in this platform."
+           else
+             echo "*** Warning: inter-library dependencies are not known to be supported."
+           fi
+           echo "*** All declared inter-library dependencies are being dropped."
            droppeddeps=yes
          fi
          ;;
@@ -1752,27 +1759,34 @@ EOF
        libname=$libname_save
        name=$name_save
 
-       if test "$module,$droppeddeps" = "yes,yes"; then
-         echo
-         echo "*** Warning: libtool could not satisfy all dependencies of module $libname"
-         echo "*** Therefore, instead of creating a dynamic module that would not run, "
-         echo "*** libtool will create a static module.  As long as the dlopening"
-         echo "*** application is linked with the -dlopen flag, this should be enough."
-         if test -z "$global_symbol_pipe"; then
+       if test "$droppeddeps" = yes; then
+         if test "$module" = yes; then
            echo
-           echo "*** However, this would only work if libtool was able to extract symbol"
-           echo "*** lists from a program, using \`nm' or equivalent, but libtool could"
-           echo "*** not find such a program.  So, this module is mostly useless."
-         fi
-         if test "$build_old_libs" = no; then
-           oldlibs="$output_objdir/$libname.$libext"
-           build_libtool_libs=module
-           build_old_libs=yes
+           echo "*** Warning: libtool could not satisfy all declared inter-library"
+           echo "*** dependencies of module $libname.  Therefore, libtool will create"
+           echo "*** a static module, that should work as long as the dlopening"
+           echo "*** application is linked with the -dlopen flag."
+           if test -z "$global_symbol_pipe"; then
+             echo
+             echo "*** However, this would only work if libtool was able to extract symbol"
+             echo "*** lists from a program, using \`nm' or equivalent, but libtool could"
+             echo "*** not find such a program.  So, this module is probably useless."
+             echo "*** \`nm' from GNU binutils and a full rebuild may help."
+           fi
+           if test "$build_old_libs" = no; then
+             oldlibs="$output_objdir/$libname.$libext"
+             build_libtool_libs=module
+             build_old_libs=yes
+           else
+             build_libtool_libs=no
+           fi
+           dlname=
+           library_names=
          else
-           build_libtool_libs=no
+           echo "*** The inter-library dependencies that have been dropped here will be"
+           echo "*** automatically added whenever a program is linked with this library"
+           echo "*** or is declared to -dlopen it."
          fi
-         dlname=
-         library_names=
        fi
       fi