MantisBT - CMake
View Issue Details
0011620CMakeModulespublic2010-12-17 14:212010-12-17 15:04
Sean Chittenden 
Brad King 
normalblockalways
closedfixed 
Apple MacOS X10.4.10
CMake 2.8.3 
 
0011620: CMake + gcc 4.6 built from ports uses wrong CMAKE_C_LINK_FLAGS...
gcc 4.6 built from ports doesn't accept the -headerpad_max_install_names argument any more. To fix, I went through and removed the flag.

/opt/local/share/cmake-2.8/Modules/Platform/Darwin.cmake lines 36 and 37


It exists in more places than just those two, however those were the only lines I needed to change to fix things. I'd supply a patch, but it's clear there needs to be a compiler version check for gcc < 4.6.
% sudo port install gcc46

Try and use gcc-mp-4.6 to compile any C or C++ file using:

include(CMakeDetermineCXXCompiler)
No tags attached.
Issue History
2010-12-17 14:21Sean ChittendenNew Issue
2010-12-17 15:03Brad KingAssigned To => Brad King
2010-12-17 15:03Brad KingStatusnew => assigned
2010-12-17 15:04Brad KingNote Added: 0024244
2010-12-17 15:04Brad KingStatusassigned => closed
2010-12-17 15:04Brad KingResolutionopen => fixed

Notes
(0024244)
Brad King   
2010-12-17 15:04   
We recently added "-Wl," to those flags to pass them down to the linker without requiring the front-end to support them:

http://cmake.org/gitweb?p=cmake.git;a=commitdiff;h=eda7841f [^]