BUG: When building a C executable, we should add CMAKE_SHARED_LIBRARY_C_FLAGS, not CMAKE_SHARED_LIBRARY_LINK_FLAGS. The latter is already added by the link line procedure.
This commit is contained in:
parent
083aba04cf
commit
1a1be82532
|
@ -1061,11 +1061,11 @@ void cmLocalUnixMakefileGenerator::OutputExecutableRule(std::ostream& fout,
|
|||
}
|
||||
else
|
||||
{
|
||||
flags += this->GetSafeDefinition("CMAKE_SHARED_LIBRARY_LINK_FLAGS");
|
||||
flags += " ";
|
||||
rules.push_back(m_Makefile->GetDefinition("CMAKE_C_LINK_EXECUTABLE"));
|
||||
flags += this->GetSafeDefinition("CMAKE_C_FLAGS");
|
||||
flags += " ";
|
||||
flags += this->GetSafeDefinition("CMAKE_SHARED_LIBRARY_C_FLAGS");
|
||||
flags += " ";
|
||||
}
|
||||
cmOStringStream linklibs;
|
||||
this->OutputLinkLibraries(linklibs, 0, t);
|
||||
|
|
Loading…
Reference in New Issue