diff options
Diffstat (limited to 'Source/cmLocalUnixMakefileGenerator.cxx')
-rw-r--r-- | Source/cmLocalUnixMakefileGenerator.cxx | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/Source/cmLocalUnixMakefileGenerator.cxx b/Source/cmLocalUnixMakefileGenerator.cxx index c5b06a9..b32c969 100644 --- a/Source/cmLocalUnixMakefileGenerator.cxx +++ b/Source/cmLocalUnixMakefileGenerator.cxx @@ -738,7 +738,10 @@ void cmLocalUnixMakefileGenerator::OutputLinkLibraries(std::ostream& fout, linkLibs += libPathFlag; if(outputRuntime) { - runtimeDirs.push_back( cmSystemTools::CollapseFullPath(libpath.c_str())); + std::string rpath = "\"`cd \"$(PWD)/"; + rpath += libpath; + rpath += "\";pwd`\""; + runtimeDirs.push_back( rpath ); } } linkLibs += libpath; |