+2001-02-15 Robert Boehne <rboehne@ricardo-us.com>
+
+ * ltconfig.in: Under AIX 4&5 check to see if we're using
+ GNU nm, if so, remove -C from the options to $NM. The -C
+ is required to demangle with AIX nm, but -C means don't
+ demangle to GNU nm.
+
2001-02-15 Robert Boehne <rboehne@ricardo-us.com>
* ltcf-cxx.sh: Only check for broken collect2 under
library_names_spec='${libname}${release}.a $libname.a'
soname_spec='${libname}${release}.so$major.o'
fi
- export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
+ # If we're using GNU nm, then we don't want the "-C" option.
+ # -C means demangle to AIX nm, but means don't demangle with GNU nm
+ if $NM -V 2>&1 | egrep '(GNU)' > /dev/null; then
+ export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
+ else
+ export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
+ fi
shlibpath_var=LIBPATH
deplibs_check_method='pass_all'
fi