diff --git a/GaudiKernel/src/Lib/System.cpp b/GaudiKernel/src/Lib/System.cpp index c377078ee32bf20358ca0c36a336e60f8d728187..1fa6d7fb13162e953cd653db262046faee72a31b 100644 --- a/GaudiKernel/src/Lib/System.cpp +++ b/GaudiKernel/src/Lib/System.cpp @@ -96,7 +96,11 @@ static unsigned long doLoad( const std::string& name, System::ImageHandle* handl *handle = mh; #else const char* path = name.c_str(); -# if defined( __linux ) || defined( __APPLE__ ) +# if defined( __linux ) + void* mh = ::dlopen( name.length() == 0 ? nullptr : path, RTLD_LAZY | RTLD_GLOBAL ); + *handle = mh; +#elif defined( __APPLE__ ) + std::cout << "debug " << name << std::endl; void* mh = ::dlopen( name.length() == 0 ? nullptr : path, RTLD_LAZY | RTLD_GLOBAL ); *handle = mh; # elif __hpux