-
-
Notifications
You must be signed in to change notification settings - Fork 32.6k
Open
Labels
OS-linuxOS-macinterpreter-core(Objects, Python, Grammar, and Parser dirs)(Objects, Python, Grammar, and Parser dirs)topic-importlibtype-featureA feature request or enhancementA feature request or enhancement
Description
Feature or enhancement
Proposal:
The default dlopen flags for loading extension modules specify neither RTLD_GLOBAL
nor RTLD_LOCAL
.
Unfortunately, the behavior when neither flag is specified differs between Linux and macOS: on Linux, RTLD_LOCAL
is the default, while on macOS RTLD_GLOBAL
seems to be the default.
POSIX itself is not helpful on the matter: "If neither RTLD_GLOBAL nor RTLD_LOCAL is specified, the default behavior is unspecified".
Having two different behaviors on two extremely popular platforms may make support more difficult for maintainers of complex extension modules that bundle popular third-party C/C++ libraries (here is a possible instance).
Has this already been discussed elsewhere?
No response given
Links to previous discussion of this feature:
No response
Metadata
Metadata
Assignees
Labels
OS-linuxOS-macinterpreter-core(Objects, Python, Grammar, and Parser dirs)(Objects, Python, Grammar, and Parser dirs)topic-importlibtype-featureA feature request or enhancementA feature request or enhancement