summaryrefslogtreecommitdiff
path: root/Python
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>1997-10-10 17:40:00 +0000
committerGuido van Rossum <guido@python.org>1997-10-10 17:40:00 +0000
commitaa859f665a5d9538277019f04dcbc7a36f9059de (patch)
treecbf7ff43169b463b169035c1ff2bcdebda8454bd /Python
parent1d4f6530578dd7d00f1a31bfeb1bf358576e659c (diff)
downloadcpython-aa859f665a5d9538277019f04dcbc7a36f9059de.tar.gz
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 3f715dec83..fffe2654e7 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) {