diff options
| author | R David Murray <rdmurray@bitdance.com> | 2011-04-25 16:13:54 -0400 |
|---|---|---|
| committer | R David Murray <rdmurray@bitdance.com> | 2011-04-25 16:13:54 -0400 |
| commit | 26058250970610c9b536feaaac846bc15402689b (patch) | |
| tree | a237039836e9cdac9cc02a268298a0bc358804ea /Python/dynload_shlib.c | |
| parent | 5e4df20ec0459e2979d80cc6e26a072c2dfa6bc2 (diff) | |
| parent | d4efeed2dd0fc0e53d334ab9d0266ea1ebc57ea9 (diff) | |
| download | cpython-26058250970610c9b536feaaac846bc15402689b.tar.gz | |
Merge #11901: add description of how bitfields are laid out to hexversion docs
Patch by Sijin Joseph.
Diffstat (limited to 'Python/dynload_shlib.c')
| -rw-r--r-- | Python/dynload_shlib.c | 21 |
1 files changed, 15 insertions, 6 deletions
diff --git a/Python/dynload_shlib.c b/Python/dynload_shlib.c index 87dae27ed4..7ea510e862 100644 --- a/Python/dynload_shlib.c +++ b/Python/dynload_shlib.c @@ -30,27 +30,36 @@ #define LEAD_UNDERSCORE "" #endif +/* The .so extension module ABI tag, supplied by the Makefile via + Makefile.pre.in and configure. This is used to discriminate between + incompatible .so files so that extensions for different Python builds can + live in the same directory. E.g. foomodule.cpython-32.so +*/ const struct filedescr _PyImport_DynLoadFiletab[] = { #ifdef __CYGWIN__ {".dll", "rb", C_EXTENSION}, {"module.dll", "rb", C_EXTENSION}, -#else +#else /* !__CYGWIN__ */ #if defined(PYOS_OS2) && defined(PYCC_GCC) {".pyd", "rb", C_EXTENSION}, {".dll", "rb", C_EXTENSION}, -#else +#else /* !(defined(PYOS_OS2) && defined(PYCC_GCC)) */ #ifdef __VMS {".exe", "rb", C_EXTENSION}, {".EXE", "rb", C_EXTENSION}, {"module.exe", "rb", C_EXTENSION}, {"MODULE.EXE", "rb", C_EXTENSION}, -#else +#else /* !__VMS */ + {"." SOABI ".so", "rb", C_EXTENSION}, + {"module." SOABI ".so", "rb", C_EXTENSION}, + {".abi" PYTHON_ABI_STRING ".so", "rb", C_EXTENSION}, + {"module.abi" PYTHON_ABI_STRING ".so", "rb", C_EXTENSION}, {".so", "rb", C_EXTENSION}, {"module.so", "rb", C_EXTENSION}, -#endif -#endif -#endif +#endif /* __VMS */ +#endif /* defined(PYOS_OS2) && defined(PYCC_GCC) */ +#endif /* __CYGWIN__ */ {0, 0} }; |
