summaryrefslogtreecommitdiff
path: root/build-aux/ltmain.in
diff options
context:
space:
mode:
authorTijl Coosemans <tijl@FreeBSD.org>2014-11-28 15:57:07 +0000
committerGary V. Vaughan <gary@gnu.org>2014-11-28 16:03:59 +0000
commitbb7cef9d97d6fdb2d8ee5350a82fb39b0ff8513d (patch)
treeef7b689dc8b4e45df64015cdd904b87b9b7498f4 /build-aux/ltmain.in
parent0995849d00a6f6f52a2b940c0e19b1f4a0891e50 (diff)
downloadlibtool-bb7cef9d97d6fdb2d8ee5350a82fb39b0ff8513d.tar.gz
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 <gary@gnu.org>
Diffstat (limited to 'build-aux/ltmain.in')
-rw-r--r--build-aux/ltmain.in9
1 files changed, 5 insertions, 4 deletions
diff --git a/build-aux/ltmain.in b/build-aux/ltmain.in
index 714d0abd..a72c007c 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)