Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
librados: workaround for boost::asio use of static member variables
boost::asio uses static member variables in a header-only library to provide thread local storage. When boost::asio is used in multiple independent shared libraries (e.g. librados and librbd), each module will have its own version of the static variables and therefore will cause inconsistencies when attempting to access the data. Under GNU ELF extensions, static member variables are given global unique symbol visibility. This was broken in librados due to the symbol map, so manually export the static member variables so that the dynamic linker can properly consolidate the variables. See github.com boostorg/asio issue 150 Signed-off-by: Jason Dillaman <dillaman@redhat.com>
- Loading branch information