Commit c8694bb5 authored by Brad King's avatar Brad King
Browse files

BUG: When there are no link flags, we want an empty string, not a null pointer.

parent b290e528
......@@ -1000,12 +1000,19 @@ void cmLocalUnixMakefileGenerator::OutputStaticLibraryRule(std::ostream& fout,
{
targetSuffix = this->GetSafeDefinition("CMAKE_STATIC_LIBRARY_SUFFIX");
}
std::string linkFlags;
const char* targetLinkFlags = t.GetProperty("LINK_FLAGS");
if(targetLinkFlags)
{
linkFlags += targetLinkFlags;
linkFlags += " ";
}
this->OutputLibraryRule(fout, name, t,
targetPrefix,
targetSuffix,
createRule,
"static library",
t.GetProperty("LINK_FLAGS"));
linkFlags.c_str());
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment