Overview
| Artifact ID: | 80108edc96379aafd8c059a3e36246ce722afd65 |
|---|---|
| Ticket: | 3579001fffffffffffffffffffffffffffffffff
Allow user choice for RTLD_GLOBAL / RTLD_LOCAL |
| User & Date: | anonymous on 2012-10-23 07:41:48 |
Changes
- icomment:
This feature is very important for extensions that provide Tcl bindings to C++ interfaces. The extension links with the underlying C++ shared libs, and can behave badly if it is loaded with local symbol scoping (two copies of the same static variable in two different extensions). Other multi-platform scripting languages provide users with a way to control the flags passed to dlopen() on Unix platforms. For example: python (ctypes module) perl (sub dl_load_flags) ruby (DL module) Since some extensions behave badly with local symbol scoping and some behave badly with global, it makes sense to give the programmer the opportunity to choose between the two, depending on the application. It's fine if this is a Unix-only feature, as long as the documentation describes it as such.
- login: ""
- mimetype: "text/plain"
- status changed to: "Open"
- username: ""