From 1a1be825320415f81648bedd1f83b4347cddda8d Mon Sep 17 00:00:00 2001 From: Brad King Date: Fri, 16 May 2003 15:20:56 -0400 Subject: [PATCH] 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. --- Source/cmLocalUnixMakefileGenerator.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Source/cmLocalUnixMakefileGenerator.cxx b/Source/cmLocalUnixMakefileGenerator.cxx index 3ebd1997d..05d3dea4e 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);