From 00fe02b93dc19367819fb07769cbc3e7f957a8ac Mon Sep 17 00:00:00 2001 From: Gordon Matzigkeit Date: Thu, 19 Jun 1997 04:30:26 +0000 Subject: [PATCH] *** empty log message *** --- ChangeLog | 7 +++++++ NEWS | 3 +++ ltmain.sh.in | 11 ++++++++++- 3 files changed, 20 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index d5a5a89fa..8146fa5ac 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,10 @@ +Sat Jun 14 21:01:03 1997 Gordon Matzigkeit + + * 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 * Makefile.am (demo/configure): Fix up rules to run autoconf. diff --git a/NEWS b/NEWS index 6a4bfd4f2..b3b94b149 100644 --- 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 diff --git a/ltmain.sh.in b/ltmain.sh.in index a80930d29..801919646 100644 --- a/ltmain.sh.in +++ b/ltmain.sh.in @@ -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. -- 2.47.2