diff options
author | hobbs <hobbs> | 2002-09-27 01:28:26 (GMT) |
---|---|---|
committer | hobbs <hobbs> | 2002-09-27 01:28:26 (GMT) |
commit | eb434dff0de63f4bd47830a09ffbd18ff0033926 (patch) | |
tree | 854e4efc39a7e3aef1fba70ec8bf7c47ee4f3cde /unix/ldAix | |
parent | 44a654f87ce617105b45247c98294c46410dbb70 (diff) | |
download | tcl-eb434dff0de63f4bd47830a09ffbd18ff0033926.zip tcl-eb434dff0de63f4bd47830a09ffbd18ff0033926.tar.gz tcl-eb434dff0de63f4bd47830a09ffbd18ff0033926.tar.bz2 |
* unix/ldAix (nmopts): add -X32_64 to make it work for 32 or 64bit
mode compilation.
Diffstat (limited to 'unix/ldAix')
-rwxr-xr-x | unix/ldAix | 18 |
1 files changed, 11 insertions, 7 deletions
@@ -10,7 +10,7 @@ # symbols exported by those files, and then invokes "ldCmd" to # perform the real link. # -# RCS: @(#) $Id: ldAix,v 1.3 1999/03/10 05:52:52 stanton Exp $ +# RCS: @(#) $Id: ldAix,v 1.4 2002/09/27 01:28:26 hobbs Exp $ # Extract from the arguments the names of all of the object files. @@ -33,17 +33,18 @@ outputFile=`echo $args | sed -e 's/.*-o \([^ ]*\).*/\1/'` # the following statements handle both versions. # 2. Use the -g switch to nm instead of -e under 4.1 (this shows just # externals, not statics; -g isn't available under 3.2.5, though). -# 3. Eliminate lines that end in ":": these are the names of object +# 3. Use the -X32_64 switch to nm on AIX-4+ to handle 32 or 64bit compiles. +# 4. Eliminate lines that end in ":": these are the names of object # files (relevant in 4.1 only). -# 4. Eliminate entries with the "U" key letter; these are undefined +# 5. Eliminate entries with the "U" key letter; these are undefined # symbols (relevant in 4.1 only). -# 5. Eliminate lines that contain the string "0|extern" preceded by space; +# 6. Eliminate lines that contain the string "0|extern" preceded by space; # in 3.2.5, these are undefined symbols (address 0). -# 6. Eliminate lines containing the "unamex" symbol. In 3.2.5, these +# 7. Eliminate lines containing the "unamex" symbol. In 3.2.5, these # are also undefined symbols. -# 7. If a line starts with ".", delete the leading ".", since this will +# 8. If a line starts with ".", delete the leading ".", since this will # just cause confusion later. -# 8. Eliminate everything after the first field in a line, so that we're +# 9. Eliminate everything after the first field in a line, so that we're # left with just the symbol name. nmopts="-g -C" @@ -51,6 +52,9 @@ osver=`uname -v` if test $osver -eq 3; then nmopts="-e" fi +if test $osver -gt 3; then + nmopts="$nmopts -X32_64" +fi rm -f lib.exp echo "#! $outputFile" >lib.exp /usr/ccs/bin/nm $nmopts -h $ofiles | sed -e '/:$/d' -e '/ U /d' -e '/[ ]0|extern/d' -e '/unamex/d' -e 's/^\.//' -e 's/[ |].*//' | sort | uniq >>lib.exp |