]> git.ipfire.org Git - thirdparty/libtool.git/commitdiff
*** empty log message ***
authorGordon Matzigkeit <gord@gnu.ai.mit.edu>
Thu, 19 Jun 1997 04:30:26 +0000 (04:30 +0000)
committerGordon Matzigkeit <gord@gnu.org>
Thu, 19 Jun 1997 04:30:26 +0000 (04:30 +0000)
ChangeLog
NEWS
ltmain.sh.in

index d5a5a89fa0969d275e2de1064cfe34a8e5097c16..8146fa5acc9c66f81a7048c5f2c668c5f9285476 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+Sat Jun 14 21:01:03 1997  Gordon Matzigkeit  <gord@gnu.ai.mit.edu>
+
+       * ltmain.sh.in (link): Create invalid libtool objects when partial
+       linking if we don't have PIC.  From Jeff Dairiki.
+       (install): Fix bug if libtool object is installed to a file name
+       without directory components.  From Jeff Dairiki.
+
 Fri Jun 13 14:18:23 1997  Gordon Matzigkeit  <gord@gnu.ai.mit.edu>
 
        * Makefile.am (demo/configure): Fix up rules to run autoconf.
diff --git a/NEWS b/NEWS
index 6a4bfd4f2e8416248d318c563e00953982a65051..b3b94b149bc403257da6df00cb697e71d8656ee9 100644 (file)
--- a/NEWS
+++ b/NEWS
@@ -2,6 +2,9 @@ NEWS - list of user-visible changes between releases of GNU libtool.
 
 New in 0.9h:
 * Bug fixes.
+* Better configuration test to find the system linker.  The old test
+  was failing because people frequently install GNU ld, but don't
+  necessarily configure GCC to use it.
 * Automake support for Libtool now uses the LTLIBRARIES primary.  See
   the Automake documentation for more information.
 * Added new `--disable-static' flag to disable building static
index a80930d29133ad6ba9bdf41473aac0f59362cd8c..80191964680fa849b558d5f16d0ac83e0aae2c86 100644 (file)
@@ -826,7 +826,15 @@ if test -z "$show_help"; then
       # Exit if we aren't doing a library object file.
       test -z "$libobj" && exit 0
 
-      if test "$build_libtool_libs" = yes && test -n "$pic_flag"; then
+      if test "$build_libtool_libs" != yes; then
+        # Create an invalid libtool object if no PIC, so that we don't
+        # accidentally link it into a program.
+       $show "echo timestamp > $libobj"
+       eval "$run echo timestamp > $libobj" || exit $?
+       exit 0
+      fi
+
+      if test -n "$pic_flag"; then
        # Only do commands if we really have different PIC objects.
        reload_objs="$libobjs"
        output="$libobj"
@@ -1175,6 +1183,7 @@ EOF
       destname=
     else
       destdir=`echo "$dest" | sed 's%/[^/]*$%%'`
+      test "$destdir" = "$dest" && destdir=.
       destname=`echo "$dest" | sed 's%^.*/%%'`
 
       # Not a directory, so check to see that there is only one file specified.