]> git.ipfire.org Git - thirdparty/libtool.git/commitdiff
* ltmain.in: Reverted this change of Alexandre's from the
authorGary V. Vaughan <gary@gnu.org>
Thu, 28 Jan 1999 13:33:33 +0000 (13:33 +0000)
committerGary V. Vaughan <gary@gnu.org>
Thu, 28 Jan 1999 13:33:33 +0000 (13:33 +0000)
1999-01-25; "don't try to use .o instead of .lo just because
there's no PIC flag.  It loses if --disable-static, and there's
not much point if we're referring to the same file anyway...",
because not all linkers will accept .lo object names.
* ltmain.in: In the case where --disable-static is specified (as
noted in Alexandre's log entry), we just link some .o files to
prevent the original error.
Reported by Andrey Slepuhin <pooh@msu.ru>

ChangeLog
ltmain.in

index 376952cf1d318b763640309dc64510cb2d3e82f1..b0b43c7cd75560136a45e570b6d9490f0b6c11de 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,15 @@
+1999-01-28  Gary V. Vaughan  <gvaughan@oranda.demon.co.uk>
+
+       * ltmain.in: Reverted this change of Alexandre's from the
+       1999-01-25; "don't try to use .o instead of .lo just because
+       there's no PIC flag.  It loses if --disable-static, and there's
+       not much point if we're referring to the same file anyway...",
+       because not all linkers will accept .lo object names.
+       * ltmain.in: In the case where --disable-static is specified (as
+       noted in Alexandre's log entry), we just link some .o files to
+       prevent the original error.
+       Reported by Andrey Slepuhin <pooh@msu.ru>
+
 1999-01-27  Alexandre Oliva  <oliva@dcc.unicamp.br>
 
        * libtoolize.in: search for A[MC]_PROG_LIBTOOL, not
index 0e7db937b242ffe463024fdda0126401cb069af0..301271779e1f5fc75ad46b1b11e70270ca9a0e2a 100644 (file)
--- a/ltmain.in
+++ b/ltmain.in
@@ -1820,6 +1820,16 @@ EOF
          linknames="$linknames $link"
        done
 
+       # Ensure that we have .o objects for linkers which dislike .lo
+       # (e.g. aix) incase we are running --disable-static
+        for obj in $libobjs; do
+          oldobj=`echo $obj | $Xsed -e "$lo2o"`
+          test -f $oldobj || ${LN_S} $obj $oldobj
+        done
+
+       # Use standard objects if they are pic
+        test -z "$pic_flag" && libobjs=`$echo "X$libobjs" | $SP2NL | $Xsed -e "$lo2o" | $NL2SP`
+
        if test -n "$whole_archive_flag_spec"; then
          if test -n "$convenience"; then
            eval libobjs=\"\$libobjs $whole_archive_flag_spec\"