From: Alexandre Oliva Date: Tue, 30 Mar 1999 16:57:28 +0000 (+0000) Subject: * ltconfig.in (aix4*, collect2name): make sure collect2 exists X-Git-Tag: release-1-3b~171 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a1cfb2f41e615daa385b17d309896aee2e3387ff;p=thirdparty%2Flibtool.git * ltconfig.in (aix4*, collect2name): make sure collect2 exists before running string on it, to avoid errors on old gccs Reported by Erez Zadok --- diff --git a/ChangeLog b/ChangeLog index 4e0054521..e9a1dcbad 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,9 @@ 1999-03-30 Alexandre Oliva + * ltconfig.in (aix4*, collect2name): make sure collect2 exists + before running string on it, to avoid errors on old gccs + Reported by Erez Zadok + * ltconfig.in (aix4*, hardcode_libdir_flag_spec): unless we're using gcc with old collect2, use -b libpath to hardcode the library search path diff --git a/ltconfig.in b/ltconfig.in index 5c7805513..3e48bff12 100755 --- a/ltconfig.in +++ b/ltconfig.in @@ -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