gcc invocation and -dylib_compatibility_version vs -compatibility_version

Joshua Root jmr at macports.org
Thu Jun 30 02:23:02 PDT 2011

On 2011-6-30 19:09 , Vincent Lefevre wrote:
> On 2011-06-29 09:59:55 -0700, Jeremy Huddleston wrote:
>> The command line options are -current_version and -compatibility_version.
>> They have been that way for as long as I've been in the Appleverse.
> OK, so I'll apply a patch to use them for all Mac OS X versions.
>> What problem are you seeing on 10.7? Can you please report it to me
>> offline in case it has NDA content?
> I don't have 10.7, only 10.4. One of the PARI testers use 10.7,
> but now I don't know why they use -dylib_compatibility_version
> and -dylib_current_version.

As per the ld man page, "This option is also called
-dylib_compatibility_version for compatibility." They were called the
longer names in old (pre-Tiger at the least) versions. Just changing to
the new names will only be a problem if they care about building on said
old versions.

- Josh

More information about the macports-dev mailing list