summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBill Hoffman <bill.hoffman@kitware.com>2002-04-26 12:43:08 -0400
committerBill Hoffman <bill.hoffman@kitware.com>2002-04-26 12:43:08 -0400
commit1a92507da0c7e552e3ee1cb145a673ab281191b3 (patch)
tree83ed7de9f8cc5529006758de0eee24bc11ccfa0b
parent3dd66f96982057c4c05bb0d0c6e6f9f24613518c (diff)
downloadcmake-1a92507da0c7e552e3ee1cb145a673ab281191b3.tar.gz
COM: just fix up a comment
-rw-r--r--Source/cmUnixMakefileGenerator.cxx7
1 files changed, 3 insertions, 4 deletions
diff --git a/Source/cmUnixMakefileGenerator.cxx b/Source/cmUnixMakefileGenerator.cxx
index d72399a3d8..d277aa536a 100644
--- a/Source/cmUnixMakefileGenerator.cxx
+++ b/Source/cmUnixMakefileGenerator.cxx
@@ -428,12 +428,11 @@ void cmUnixMakefileGenerator::OutputLinkLibraries(std::ostream& fout,
std::vector<std::string> runtimeDirs;
bool cxx = tgt.HasCxx();
- // this may look strange, but the only reason for CXX and C SHLIB flags
- // is for the hp where ld is used for linking shared libraries
- // but we still need to use the compiler version of the flags for the hp
- // So for EXECUTABLE targets we want to use the CXX Flags for run time path stuff
if(!cxx )
{
+ // if linking a c executable use the C runtime flag as cc
+ // may not be the same program that creates shared libaries
+ // and may have different flags
if( tgt.GetType() == cmTarget::EXECUTABLE)
{
if(m_Makefile->GetDefinition("CMAKE_C_SHLIB_RUNTIME_FLAG"))