Correction, my fix was wrong, something like this should work better (will test it with gal 0.22 now):

# Darwin ld doesn't like 0 for these options...
major_plus_one=`expr $current - $age + 1`
verstring="-compatibility_version $major_plus_one -current_version $major_plus_one.$age.$revision"

Reasoning: the first part of the version in Darwin corresponds exactly to the major version. Also, $age signifies API changes, while revision signifies any code changes, hence $age is more significant than $revision.

With that version will be almost identical as they are on linux and also as they are in the filename, with the main excpetion that the major version is incremented by 1. I am not fully sure if that is necessary (as e.g. OpenSSL uses has compatibility version 0.9.0), but changing it would break binary compatibility with existing packages so I figured I better don't remove it :-)


I don't see if this change might break anything, but feel free to construct scenarios that prove me wrong :-)


Max
--
-----------------------------------------------
Max Horn
Software Developer


-------------------------------------------------------
This SF.NET email is sponsored by: Take your first step towards giving your online business a competitive advantage. Test-drive a Thawte SSL certificate - our easy online guide will show you how. Click here to get started: http://ads.sourceforge.net/cgi-bin/redirect.pl?thaw0027en
_______________________________________________
Fink-devel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/fink-devel

Reply via email to