[CMake] problem with mac linker flags

Brad King brad.king at kitware.com
Wed Dec 22 16:37:35 EST 2010


On 12/22/2010 04:21 PM, Cochran, Bill wrote:
> So, I guess the problem is cmake is incorrectly guessing my compiler?  I'm
> not using intel, I'm using gnu.

Both Darwin-GNU and Darwin-icc need the fix.

IIRC, Apple's port of GCC documented the -headerpad_max_install_names
flag as the way pad install names.  The compiler front-end happened
to implement the flag just by passing it through to the linker.  Many
of today's front-ends do not recognize this flag, so now we need to
use -Wl, to get it through.

Fixed upstream:

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

Will be in 2.8.4.

-Brad


More information about the CMake mailing list