[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
Thu Jan 29 03:42:58 EST 2009


Martin Costabel schrieb:
> Alan W. Irwin wrote:
> []
>> Is there a better gcc option then -v to find out the _actual_ linker
>> being
>> used?
> 
> Use -Wl,-v :-)
> 
> On 10.4, if you run gcc -dynamiclib, the linking is managed by
> /usr/bin/libtool which in turn calls /usr/bin/ld, and /usr/bin/libtool
> understands the -current_version flag. On the other hand, /usr/bin/ld
> does not understand "-current_version", it wants
> "-dylib_current_version", which it gets fed by /usr/bin/libtool, but
> "-dylib_current_version" is not understood by /usr/bin/libtool. Clear? ;-)

Well, gcc-4.3.2 documentation says to use "-current_version" which gets
passed to the linker, not "-Wl,-current_version". Maybe it adapts the
the option to the program actually being called? If not, that should be
reported as bug against gcc.


HS


More information about the CMake mailing list