summaryrefslogtreecommitdiffstats
path: root/Source/cmMakefileLibraryTargetGenerator.cxx
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2006-06-18 15:50:40 (GMT)
committerBrad King <brad.king@kitware.com>2006-06-18 15:50:40 (GMT)
commit0a89a904b32978288f250d2d2eb11273d14270cc (patch)
treebb7703867198d79cee91894725eb2ee1075d1130 /Source/cmMakefileLibraryTargetGenerator.cxx
parentd52f88ae109c702357c0f9ae1af599b8b9645e7a (diff)
downloadCMake-0a89a904b32978288f250d2d2eb11273d14270cc.zip
CMake-0a89a904b32978288f250d2d2eb11273d14270cc.tar.gz
CMake-0a89a904b32978288f250d2d2eb11273d14270cc.tar.bz2
BUG: Do not write link script lines that use the ':' command which is supposed to be a no-op anyway.
Diffstat (limited to 'Source/cmMakefileLibraryTargetGenerator.cxx')
-rw-r--r--Source/cmMakefileLibraryTargetGenerator.cxx7
1 files changed, 6 insertions, 1 deletions
diff --git a/Source/cmMakefileLibraryTargetGenerator.cxx b/Source/cmMakefileLibraryTargetGenerator.cxx
index 537f138..0009429 100644
--- a/Source/cmMakefileLibraryTargetGenerator.cxx
+++ b/Source/cmMakefileLibraryTargetGenerator.cxx
@@ -567,7 +567,12 @@ void cmMakefileLibraryTargetGenerator::WriteLibraryRules
for(std::vector<std::string>::iterator cmd = link_script_commands.begin();
cmd != link_script_commands.end(); ++cmd)
{
- (*linkScriptStream) << *cmd << "\n";
+ // Do not write out empty commands or commands beginning in the
+ // shell no-op ":".
+ if(!cmd->empty() && (*cmd)[0] != ':')
+ {
+ (*linkScriptStream) << *cmd << "\n";
+ }
}
}