From c74837fbb9bb876bfa76f3abd9b378f94f20e01e Mon Sep 17 00:00:00 2001 From: Ozkan Sezer Date: Thu, 5 Jul 2018 23:01:10 +0300 Subject: [PATCH] ltmain.sh: make OSX autofoo builds' compatibility version match Xcode builds. closes bug #4208. --- build-scripts/ltmain.sh | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/build-scripts/ltmain.sh b/build-scripts/ltmain.sh index 6635343b2..3cbc4a776 100755 --- a/build-scripts/ltmain.sh +++ b/build-scripts/ltmain.sh @@ -7404,8 +7404,11 @@ func_mode_link () # 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" + #xlcverstring="${wl}-compatibility_version ${wl}$minor_current ${wl}-current_version ${wl}$minor_current.$revision" + #verstring="-compatibility_version $minor_current -current_version $minor_current.$revision" + # make the compatibility version match the Xcode project files, i.e. 1.0 + xlcverstring="${wl}-compatibility_version 1.0 ${wl}-current_version ${wl}$minor_current.$revision" + verstring="-compatibility_version 1.0 -current_version $minor_current.$revision" ;; freebsd-aout)