On MacOS, compatibilty version is incorrectly set to a different version that pkg-config
On MacOS, at least, in both CMake and meson builds, for version 2.11.0, the compatibility version and the current version of the dylib
are set to 6.0.0
and 6.18.0
respectively, even though the pkg-config
version is set to 24.0.18
. This causes problems when dynamically linking with librsvg
(as an example).
I'm attaching a patch that makes this change for the meson
build only, but hopefully leads to a fix for the CMake build as well.
Thanks.
freetype-compatibility-version-fix.patch
After applying this patch, the compatibility version of the dylib
is 24.0.0
and the current version is 24.0.18
.
I can't understand why versions such as on homebrew
do not have this problem, however, as I can't find any code that relates to setting the version.
PS: Homebrew
sets the compatibility and current version to 25.0.0
.