diff options
author | Brad King <brad.king@kitware.com> | 2003-05-16 19:20:56 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2003-05-16 19:20:56 (GMT) |
commit | 1a1be825320415f81648bedd1f83b4347cddda8d (patch) | |
tree | 28c54fad97ad9da4965a992685af8c972759c286 /Source | |
parent | 083aba04cfe2dba29b267100f52d2387f35dd487 (diff) | |
download | CMake-1a1be825320415f81648bedd1f83b4347cddda8d.zip CMake-1a1be825320415f81648bedd1f83b4347cddda8d.tar.gz CMake-1a1be825320415f81648bedd1f83b4347cddda8d.tar.bz2 |
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.
Diffstat (limited to 'Source')
-rw-r--r-- | Source/cmLocalUnixMakefileGenerator.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Source/cmLocalUnixMakefileGenerator.cxx b/Source/cmLocalUnixMakefileGenerator.cxx index 3ebd199..05d3dea 100644 --- a/Source/cmLocalUnixMakefileGenerator.cxx +++ b/Source/cmLocalUnixMakefileGenerator.cxx @@ -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); |