summaryrefslogtreecommitdiffstats
path: root/Python
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>1997-10-10 17:40:00 (GMT)
committerGuido van Rossum <guido@python.org>1997-10-10 17:40:00 (GMT)
commit3b31cd2fe752bea547a53da870e7978dc36266d2 (patch)
treef40cc0e4807e8f4e5afc2120043721e9b96c7080 /Python
parenta59406abdfd1393db708b379003fe3ab0dd0af2e (diff)
downloadcpython-3b31cd2fe752bea547a53da870e7978dc36266d2.zip
cpython-3b31cd2fe752bea547a53da870e7978dc36266d2.tar.gz
cpython-3b31cd2fe752bea547a53da870e7978dc36266d2.tar.bz2
Shared libraries didn't quite work under AIX because of the change in
status of the GNU readline interface. Here's a patch, by Vladimir Marangozov.
Diffstat (limited to 'Python')
-rw-r--r--Python/importdl.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/Python/importdl.c b/Python/importdl.c
index 3f715de..fffe265 100644
--- a/Python/importdl.c
+++ b/Python/importdl.c
@@ -599,6 +599,17 @@ aix_getoldmodules(modlistptr)
ldiptr = (struct ld_info *)ldibuf;
prevmodptr = NULL;
do {
+ if (strstr(ldiptr->ldinfo_filename, "python") == NULL) {
+ /*
+ -- Extract only the modules containing "python" as a
+ -- substring, like the "python[version]" executable or
+ -- "libpython[version].a" in case python is embedded.
+ */
+ offset = (unsigned int)ldiptr->ldinfo_next;
+ ldiptr = (struct ld_info *)((unsigned int)
+ ldiptr + offset);
+ continue;
+ }
if ((modptr = (ModulePtr)malloc(sizeof(Module))) == NULL) {
PyErr_SetString(PyExc_ImportError, strerror(errno));
while (*modlistptr) {