From c29b6df9d7f31d23933de741394ad55a3205594c Mon Sep 17 00:00:00 2001 From: Robert Boehne Date: Thu, 15 Feb 2001 21:55:40 +0000 Subject: [PATCH] ltconfig.in : Under AIX 4&5 check $NM for GNUness and remove -C if so. --- ChangeLog | 7 +++++++ ltconfig.in | 8 +++++++- 2 files changed, 14 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 04a86f3d9..c4886b623 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,10 @@ +2001-02-15 Robert Boehne + + * 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 * ltcf-cxx.sh: Only check for broken collect2 under diff --git a/ltconfig.in b/ltconfig.in index 35cccef0d..f41cfb73c 100755 --- a/ltconfig.in +++ b/ltconfig.in @@ -964,7 +964,13 @@ aix4* | aix5*) 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 -- 2.47.3