]> git.ipfire.org Git - thirdparty/libtool.git/commitdiff
* ltconfig.in (aix4*, collect2name): make sure collect2 exists
authorAlexandre Oliva <oliva@dcc.unicamp.br>
Tue, 30 Mar 1999 16:57:28 +0000 (16:57 +0000)
committerAlexandre Oliva <aoliva@redhat.com>
Tue, 30 Mar 1999 16:57:28 +0000 (16:57 +0000)
before running string on it, to avoid errors on old gccs
Reported by Erez Zadok <ezk@cs.columbia.edu>

ChangeLog
ltconfig.in

index 4e00545217863516cf73e25a92654af16b23408d..e9a1dcbad018b4fa7da706b95b11196472db2322 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,9 @@
 1999-03-30  Alexandre Oliva  <oliva@dcc.unicamp.br>
 
+       * ltconfig.in (aix4*, collect2name): make sure collect2 exists
+       before running string on it, to avoid errors on old gccs
+       Reported by Erez Zadok <ezk@cs.columbia.edu>
+
        * ltconfig.in (aix4*, hardcode_libdir_flag_spec): unless we're
        using gcc with old collect2, use -b libpath to hardcode the
        library search path
index 5c7805513ab829d47ae86ae9fbced26f68dc29af..3e48bff123277a6c64b6c99d4573143a8df517ea 100755 (executable)
@@ -1160,8 +1160,9 @@ else
     hardcode_libdir_flag_spec='${wl}-b ${wl}nolibpath ${wl}-b ${wl}libpath:$libdir:/usr/lib:/lib'
     hardcode_libdir_separator=':'
     if test "$with_gcc" = yes; then
-      if strings `${CC} -print-prog-name=collect2` | \
-        grep resolve_lib_name >/dev/null
+      collect2name=`${CC} -print-prog-name=collect2`
+      if test -f "$collect2name" && \
+         strings "$collect2name" | grep resolve_lib_name >/dev/null
       then
        # We have reworked collect2
        hardcode_direct=yes