summaryrefslogtreecommitdiffstats
path: root/Source/cmMakefileLibraryTargetGenerator.cxx
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2007-03-08 15:31:03 (GMT)
committerBrad King <brad.king@kitware.com>2007-03-08 15:31:03 (GMT)
commit4089c768900c10d55b9b58c5bca7242db18ed664 (patch)
tree5f4b233b5cfe48b74bd54f10c5598182ffc8b525 /Source/cmMakefileLibraryTargetGenerator.cxx
parent00b4eeededcebf2e5779d3a47fca1de130c22c63 (diff)
downloadCMake-4089c768900c10d55b9b58c5bca7242db18ed664.zip
CMake-4089c768900c10d55b9b58c5bca7242db18ed664.tar.gz
CMake-4089c768900c10d55b9b58c5bca7242db18ed664.tar.bz2
BUG: Some calls to Convert() were converting for MAKEFILE but then passing the output to the build shell. The calls have now been converted to call Convert() with SHELL.
Diffstat (limited to 'Source/cmMakefileLibraryTargetGenerator.cxx')
-rw-r--r--Source/cmMakefileLibraryTargetGenerator.cxx28
1 files changed, 7 insertions, 21 deletions
diff --git a/Source/cmMakefileLibraryTargetGenerator.cxx b/Source/cmMakefileLibraryTargetGenerator.cxx
index 6f6ab2e..17c2fab 100644
--- a/Source/cmMakefileLibraryTargetGenerator.cxx
+++ b/Source/cmMakefileLibraryTargetGenerator.cxx
@@ -148,7 +148,7 @@ void cmMakefileLibraryTargetGenerator::WriteSharedLibraryRules(bool relink)
extraFlags +=
this->Convert((*i)->GetFullPath().c_str(),
cmLocalGenerator::START_OUTPUT,
- cmLocalGenerator::MAKEFILE);
+ cmLocalGenerator::SHELL);
}
}
}
@@ -269,19 +269,19 @@ void cmMakefileLibraryTargetGenerator::WriteLibraryRules
// arguments.
std::string targetOutPathPDB =
this->Convert(targetFullPathPDB.c_str(),cmLocalGenerator::FULL,
- cmLocalGenerator::MAKEFILE);
+ cmLocalGenerator::SHELL);
std::string targetOutPath =
this->Convert(targetFullPath.c_str(),cmLocalGenerator::START_OUTPUT,
- cmLocalGenerator::MAKEFILE);
+ cmLocalGenerator::SHELL);
std::string targetOutPathSO =
this->Convert(targetFullPathSO.c_str(),cmLocalGenerator::START_OUTPUT,
- cmLocalGenerator::MAKEFILE);
+ cmLocalGenerator::SHELL);
std::string targetOutPathReal =
this->Convert(targetFullPathReal.c_str(),cmLocalGenerator::START_OUTPUT,
- cmLocalGenerator::MAKEFILE);
+ cmLocalGenerator::SHELL);
std::string targetOutPathImport =
this->Convert(targetFullPathImport.c_str(),cmLocalGenerator::START_OUTPUT,
- cmLocalGenerator::MAKEFILE);
+ cmLocalGenerator::SHELL);
// Add the link message.
std::string buildEcho = "Linking ";
@@ -566,21 +566,7 @@ void cmMakefileLibraryTargetGenerator::WriteLibraryRules
objdir += this->Target->GetName();
objdir += ".dir";
vars.ObjectDir = objdir.c_str();
- std::string targetLinkScriptPathReal;
- if(useLinkScript)
- {
- // Paths in the link script are interpreted directly by the shell
- // and not make.
- targetLinkScriptPathReal =
- this->Convert(targetFullPathReal.c_str(),
- cmLocalGenerator::START_OUTPUT,
- cmLocalGenerator::SHELL);
- vars.Target = targetLinkScriptPathReal.c_str();
- }
- else
- {
- vars.Target = targetOutPathReal.c_str();
- }
+ vars.Target = targetOutPathReal.c_str();
std::string linkString = linklibs.str();
vars.LinkLibraries = linkString.c_str();
vars.ObjectsQuoted = buildObjs.c_str();