branch master updated: ltmain.in: update QNX version_type handling

Ileana Dumitrescu <[email protected]>
Newsgroups gmane.comp.gnu.libtool.cvs
Message-ID <[email protected]>
This is an automated email from the git hooks/post-receive script.

ildumi pushed a commit to branch master
in repository libtool.

The following commit(s) were added to refs/heads/master by this push:
     new a956f5ce ltmain.in: update QNX version_type handling
a956f5ce is described below

commit a956f5ce7d98d77401c65c496262479ea5fcdfad
Author: Stephen Webb <[email protected]>
AuthorDate: Fri Mar 22 12:49:53 2024 -0400

    ltmain.in: update QNX version_type handling
    
    QNX handles ELF SONAME versioning just like most other targets.
---
 build-aux/ltmain.in | 9 +++++----
 1 file changed, 5 insertions(+), 4 deletions(-)

diff --git a/build-aux/ltmain.in b/build-aux/ltmain.in
index af4970be..7e4b8211 100644
--- a/build-aux/ltmain.in
+++ b/build-aux/ltmain.in
@@ -6955,13 +6955,13 @@ func_mode_link ()
 	  #
 	  case $version_type in
 	  # correct linux to gnu/linux during the next big refactor
-	  darwin|freebsd-elf|linux|midnightbsd-elf|osf|windows|none)
+	  darwin|freebsd-elf|linux|midnightbsd-elf|osf|qnx|windows|none)
 	    func_arith $number_major + $number_minor
 	    current=$func_arith_result
 	    age=$number_minor
 	    revision=$number_revision
 	    ;;
-	  freebsd-aout|qnx|sco|sunos)
+	  freebsd-aout|sco|sunos)
 	    current=$number_major
 	    revision=$number_minor
 	    age=0
@@ -7108,8 +7108,9 @@ func_mode_link ()
 	  ;;
 
 	qnx)
-	  major=.$current
-	  versuffix=.$current
+	  func_arith $current - $age
+	  major=.$func_arith_result
+	  versuffix=$major.$age.$revision
 	  ;;
 
 	sco)
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.