From 7d550e8dc0423b9d8c9ee6c25cbeaa5f118e5c69 Mon Sep 17 00:00:00 2001 From: Brad King Date: Sat, 17 Jun 2006 19:32:30 -0400 Subject: BUG: Need to use different link script name when relinking. --- Source/cmMakefileLibraryTargetGenerator.cxx | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) 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 lss( new cmGeneratedFileStream(linkScriptName.c_str())); linkScriptStream = lss; -- cgit v0.12