[CMake] Regression between 2.4.8 and 2.6.2 for the macada version of the gcc compiler

Hendrik Sattler post at hendrik-sattler.de
Wed Jan 28 05:19:54 EST 2009


Alan W. Irwin schrieb:
> Can somebody recommend a fix to that file so that CMake-2.6.2 works just as
> well as CMake-2.4.8 for the macada version of the gcc compiler?
> 
> I have no idea whether gcc should always be expected to recognize the
> -current_version flag.

http://gcc.gnu.org/onlinedocs/gcc-4.3.2/gcc/Darwin-Options.html#Darwin-Options
says that it is recognized as passed to the linker.

> That is, I cannot conclude one way or the other
> whether this problem is due to a macada compiler deficiency or incorrect
> CMake-2.6.2 assumption about gcc.  However, this developer is currently
> completely stuck because PLplot now uses 2.6.0 as the minimum version. (I
> got tired of maintaining build-system logic for the two separate
> versions so
> I recently ripped out the 2.4.8-specific stuff.  It was only at that point,
> that it turned out this developer had failed to do the requested testing of
> 2.6.0 before the final changeover, but that is the way it often goes when
> testing is requested.)

Do both use the same linker? You could pass the -v flag to gcc for the
link call to see what and how the linker is called.


HS


More information about the CMake mailing list