Fix a problem not letting plugins work when the client is built on RedHat and derived systems (Fedora is affected too). Completely avoid apr_dso_load() on Linux (they modified it to open libraries with RTLD_NOW | RTLD_GLOBAL | RTLD_DEEPBIND). Get a standard DSO handle with RTLD_NOW | RTLD_GLOBAL flags instead, and convert it to a valid APR one by using apr_os_handle_put().
This commit is contained in:
@@ -65,6 +65,9 @@ endif (NOT WORD_SIZE EQUAL 32)
|
||||
list(APPEND llplugin_SOURCE_FILES ${llplugin_HEADER_FILES})
|
||||
|
||||
add_library (llplugin ${llplugin_SOURCE_FILES})
|
||||
if(LINUX)
|
||||
target_link_libraries (llplugin rt dl)
|
||||
endif(LINUX)
|
||||
|
||||
add_dependencies(llplugin prepare)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user