Mercurial > cpython-lru_cache-weakref
diff Python/importdl.c @ 6479:58b4d9ea8e51 legacy-trunk
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.
| author | Guido van Rossum <guido@python.org> |
|---|---|
| date | Fri, 10 Oct 1997 17:40:00 +0000 |
| parents | 0eb14a6484f3 |
| children | 4514a5ea3ec4 |
line wrap: on
line diff
--- a/Python/importdl.c Fri Oct 10 17:39:19 1997 +0000 +++ b/Python/importdl.c Fri Oct 10 17:40:00 1997 +0000 @@ -599,6 +599,17 @@ 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) {
