- 论坛徽章:
- 0
|
Can't shl_load() a library containing Thread Local Storage
The problem is that any shared library that contains Thread Local Storage (TLS) cannot be used as a dependency of another shared library. There are at least two ways around this problem. First, you can link each incomplete executable against each of the dependent library that use TLS. Second, you can use the LD_PRELOAD environment variable to load the dependent shared libraries at startup. You can specify multiple shared libraries by separating each library name with a colon. You can specify the full path the the library, or leave the path off the library name to cause the loader to use the standard search path. |
|