before running string on it, to avoid errors on old gccs
Reported by Erez Zadok <ezk@cs.columbia.edu>
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
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