summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--Source/cmMakefileLibraryTargetGenerator.cxx9
1 files changed, 8 insertions, 1 deletions
diff --git a/Source/cmMakefileLibraryTargetGenerator.cxx b/Source/cmMakefileLibraryTargetGenerator.cxx
index c2de260..537f138 100644
--- a/Source/cmMakefileLibraryTargetGenerator.cxx
+++ b/Source/cmMakefileLibraryTargetGenerator.cxx
@@ -389,7 +389,14 @@ void cmMakefileLibraryTargetGenerator::WriteLibraryRules
{
useLinkScript = true;
linkScriptName = this->TargetBuildDirectoryFull;
- linkScriptName += "/link.txt";
+ if(relink)
+ {
+ linkScriptName += "/relink.txt";
+ }
+ else
+ {
+ linkScriptName += "/link.txt";
+ }
std::auto_ptr<cmGeneratedFileStream> lss(
new cmGeneratedFileStream(linkScriptName.c_str()));
linkScriptStream = lss;