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:
Brad King 2003-05-16 15:20:56 -04:00
parent 083aba04cf
commit 1a1be82532
1 changed files with 2 additions and 2 deletions

View File

@ -1061,11 +1061,11 @@ void cmLocalUnixMakefileGenerator::OutputExecutableRule(std::ostream& fout,
} }
else else
{ {
flags += this->GetSafeDefinition("CMAKE_SHARED_LIBRARY_LINK_FLAGS");
flags += " ";
rules.push_back(m_Makefile->GetDefinition("CMAKE_C_LINK_EXECUTABLE")); rules.push_back(m_Makefile->GetDefinition("CMAKE_C_LINK_EXECUTABLE"));
flags += this->GetSafeDefinition("CMAKE_C_FLAGS"); flags += this->GetSafeDefinition("CMAKE_C_FLAGS");
flags += " "; flags += " ";
flags += this->GetSafeDefinition("CMAKE_SHARED_LIBRARY_C_FLAGS");
flags += " ";
} }
cmOStringStream linklibs; cmOStringStream linklibs;
this->OutputLinkLibraries(linklibs, 0, t); this->OutputLinkLibraries(linklibs, 0, t);