summaryrefslogtreecommitdiff
path: root/task_so.cc
diff options
context:
space:
mode:
Diffstat (limited to 'task_so.cc')
-rw-r--r--task_so.cc13
1 files changed, 12 insertions, 1 deletions
diff --git a/task_so.cc b/task_so.cc
index afe5c32..c484a40 100644
--- a/task_so.cc
+++ b/task_so.cc
@@ -188,11 +188,22 @@ std::string TaskSO::flagsString() const
std::string flagsStr;
for(const auto& flag : config.ldflags)
{
- if(!flagsStr.empty())
+ if(flag != config.ldflags[0])
{
flagsStr += " ";
}
flagsStr += flag;
}
+ flagsStr += "\n";
+
+ for(const auto& dep : config.depends)
+ {
+ if(dep != config.depends[0])
+ {
+ flagsStr += " ";
+ }
+ flagsStr += dep;
+ }
+
return flagsStr;
}