From 01cd992f771b5b1f996aa8c38e9afd99e868a048 Mon Sep 17 00:00:00 2001 From: Alex Rousskov Date: Fri, 26 Aug 2011 14:48:08 -0600 Subject: [PATCH] Polished unused code. The unused dlopen() call is actually useful to enable when lt_dlopen() reports "file not found" errors for loadable modules that do exist but that Libtool cannot load successfully due to undefined symbols or other errors. This inability to correctly report a library loading error is a long-standing Libtool bug, stemming from Libtool's desire to try and load several differently named library files until one succeeds, losing true error information in the process. --- src/LoadableModule.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/LoadableModule.cc b/src/LoadableModule.cc index df01bc7b59..996797efc3 100644 --- a/src/LoadableModule.cc +++ b/src/LoadableModule.cc @@ -69,7 +69,7 @@ void *LoadableModule::openModule(int mode) # if XSTD_USE_LIBLTDL return lt_dlopen(theName.termedBuf()); # else - return dlopen(theName.c_str(), + return dlopen(theName.termedBuf(), mode == lmNow ? RTLD_NOW : RTLD_LAZY); # endif } -- 2.47.3