]> 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:14 +0000 (16:57 +0000)
committerAlexandre Oliva <aoliva@redhat.com>
Tue, 30 Mar 1999 16:57:14 +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 3c0b91a9ae0e3c667d14518e0b0fa1beffe03b9b..623e26b6243dbfbabc65a50ad12bd3cc9bcaa4c8 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 d2a668f2d887b633fb3b589503d29e03404980f6..11c41279a01621a2340b3f7e30924a76c2072adb 100755 (executable)
@@ -1152,8 +1152,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