From: Tijl Coosemans Date: Fri, 28 Nov 2014 15:57:07 +0000 (+0000) Subject: libtool: use a modern library version scheme for freebsd-elf. X-Git-Tag: v2.4.4~5 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=bb7cef9d97d6fdb2d8ee5350a82fb39b0ff8513d;p=thirdparty%2Flibtool.git libtool: use a modern library version scheme for freebsd-elf. * m4/libtool.m4 (_LT_SYS_DYNAMIC_LINKER): Adopt downstream patch used by FreeBSD for versioned library filenames. * build-aux/ltmain.in (func_mode_link): Replace conflicting freebsd-elf version_type case branches with a single calculation setting major and versuffix to match downstream FreeBSD. Signed-off-by: Gary V. Vaughan --- diff --git a/build-aux/ltmain.in b/build-aux/ltmain.in index 714d0abda..a72c007cb 100644 --- a/build-aux/ltmain.in +++ b/build-aux/ltmain.in @@ -6834,13 +6834,13 @@ func_mode_link () # case $version_type in # correct linux to gnu/linux during the next big refactor - darwin|linux|osf|windows|none) + darwin|freebsd-elf|linux|osf|windows|none) func_arith $number_major + $number_minor current=$func_arith_result age=$number_minor revision=$number_revision ;; - freebsd-aout|freebsd-elf|qnx|sunos) + freebsd-aout|qnx|sunos) current=$number_major revision=$number_minor age=0 @@ -6926,8 +6926,9 @@ func_mode_link () ;; freebsd-elf) - major=.$current - versuffix=.$current + func_arith $current - $age + major=.$func_arith_result + versuffix=$major.$age.$revision ;; irix | nonstopux) diff --git a/m4/libtool.m4 b/m4/libtool.m4 index 874cf2454..da2213939 100644 --- a/m4/libtool.m4 +++ b/m4/libtool.m4 @@ -2543,7 +2543,7 @@ freebsd* | dragonfly*) version_type=freebsd-$objformat case $version_type in freebsd-elf*) - library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext' + library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' need_version=no need_lib_prefix=no ;;