summaryrefslogtreecommitdiffstats
path: root/Source/cmLoadCommandCommand.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'Source/cmLoadCommandCommand.cxx')
-rw-r--r--Source/cmLoadCommandCommand.cxx9
1 files changed, 8 insertions, 1 deletions
diff --git a/Source/cmLoadCommandCommand.cxx b/Source/cmLoadCommandCommand.cxx
index 9634512..fe73ee8 100644
--- a/Source/cmLoadCommandCommand.cxx
+++ b/Source/cmLoadCommandCommand.cxx
@@ -290,7 +290,14 @@ bool cmLoadCommandCommand::InitialPass(std::vector<std::string> const& args)
CM_INIT_FUNCTION initFunction
= (CM_INIT_FUNCTION)
cmsys::DynamicLoader::GetSymbolAddress(lib, initFuncName.c_str());
-
+ if ( !initFunction )
+ {
+ initFuncName = "_";
+ initFuncName += args[0];
+ initFuncName += "Init";
+ initFunction = (CM_INIT_FUNCTION)(
+ cmsys::DynamicLoader::GetSymbolAddress(lib, initFuncName.c_str()));
+ }
// if the symbol is found call it to set the name on the
// function blocker
if(initFunction)