summaryrefslogtreecommitdiffstats
path: root/Modules/makexp_aix
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>2005-09-14 18:09:42 (GMT)
committerGuido van Rossum <guido@python.org>2005-09-14 18:09:42 (GMT)
commit8ee3e5aa9306a00573817e237bed4a482473e818 (patch)
tree6d5dc937d3b495c5295fe6c5c4b3e212ab5509c0 /Modules/makexp_aix
parent539c662f10b41d15f658cabfa03cc02902862adc (diff)
downloadcpython-8ee3e5aa9306a00573817e237bed4a482473e818.zip
cpython-8ee3e5aa9306a00573817e237bed4a482473e818.tar.gz
cpython-8ee3e5aa9306a00573817e237bed4a482473e818.tar.bz2
- Changes donated by Elemental Security to make it work on AIX 5.3
with IBM's 64-bit compiler (SF patch #1284289). This also closes SF bug #105470: test_pwd fails on 64bit system (Opteron).
Diffstat (limited to 'Modules/makexp_aix')
-rwxr-xr-xModules/makexp_aix8
1 files changed, 7 insertions, 1 deletions
diff --git a/Modules/makexp_aix b/Modules/makexp_aix
index 9d3bccb..cb349c2 100755
--- a/Modules/makexp_aix
+++ b/Modules/makexp_aix
@@ -70,6 +70,12 @@ echo "*" >> $expFileName
# left with just the symbol name.
# 7. Eliminate all entries containing two colons, like Class::method
#
-/usr/ccs/bin/nm -Bex $inputFiles \
+
+# Use -X32_64 if it appears to be implemented in this version of 'nm'.
+NM=/usr/ccs/bin/nm
+xopt=-X32_64
+$NM -e $xopt $1 >/dev/null 2>&1 || xopt=""
+
+$NM -Bex $xopt $inputFiles \
| sed -e '/ [^BDT] /d' -e '/\./d' -e 's/.* [BDT] //' -e '/::/d' \
| sort | uniq >> $expFileName