Comment #1 on issue 576 by jz...@
google.com: dylib compatibility_version mismatch between autotools & CMake
https://bugs.chromium.org/p/webp/issues/detail?id=576#c1As mentioned in the expat bug, from the configure generated by autotools 2.71 on macOS:
darwin)
# Like Linux, but with the current version available in
# verstring for coding it into the library header
func_arith $current - $age
major=.$func_arith_result
versuffix=$major.$age.$revision
# Darwin ld doesn't like 0 for these options...
func_arith $current + 1
minor_current=$func_arith_result
xlcverstring="$wl-compatibility_version $wl$minor_current $wl-current_version $wl$minor_current.$revision"
verstring="-compatibility_version $minor_current -current_version $minor_current.$revision"
# On Darwin other compilers
case $CC in
nagfor*)
verstring="$wl-compatibility_version $wl$minor_current $wl-current_version $wl$minor_current.$revision"
;;
*)
verstring="-compatibility_version $minor_current -current_version $minor_current.$revision"
;;
esac
;;
For libwebp currently we see:
libtool --tag=CC --mode=link cc ... -version-info 8:4:1 -o
libwebp.lalibtool: link: cc -dynamiclib -o .libs/libwebp.7.dylib ... -install_name /lib/libwebp.7.dylib -compatibility_version 9 -current_version 9.4