From 401844effd2c08b85d0cc583b3b49663150d4b63 Mon Sep 17 00:00:00 2001
From: Matthias Klose <doko@debian.org>
Date: Thu, 17 Jun 2004 21:32:58 +0000
Subject: [PATCH] libtool-version: New.

2004-06-17  Matthias Klose  <doko@debian.org>

        * libtool-version: New.
        * Makefile.am (libffi_la_LDFLAGS): Use -version-info for soname.
        * Makefile.in: Regenerate.

From-SVN: r83315
---
 libffi/ChangeLog       | 6 ++++++
 libffi/Makefile.am     | 2 +-
 libffi/Makefile.in     | 2 +-
 libffi/libtool-version | 6 ++++++
 4 files changed, 14 insertions(+), 2 deletions(-)
 create mode 100644 libffi/libtool-version

diff --git a/libffi/ChangeLog b/libffi/ChangeLog
index 078ddce3ba22..fa52c914e01a 100644
--- a/libffi/ChangeLog
+++ b/libffi/ChangeLog
@@ -1,3 +1,9 @@
+2004-06-17  Matthias Klose  <doko@debian.org>
+
+	* libtool-version: New.
+	* Makefile.am (libffi_la_LDFLAGS): Use -version-info for soname.
+	* Makefile.in: Regenerate.
+
 2005-06-15  Paolo Bonzini  <bonzini@gnu.org>
 
 	* Makefile.am: Remove useless multilib rules.
diff --git a/libffi/Makefile.am b/libffi/Makefile.am
index 331b5a7498b6..9506c3f4319b 100644
--- a/libffi/Makefile.am
+++ b/libffi/Makefile.am
@@ -137,7 +137,7 @@ nodist_libffi_convenience_la_SOURCES = $(nodist_libffi_la_SOURCES)
 
 AM_CFLAGS = -Wall -g -fexceptions
 
-libffi_la_LDFLAGS = -release $(VERSION)
+libffi_la_LDFLAGS = -version-info `grep -v '^\#' $(srcdir)/libtool-version`
 
 AM_CPPFLAGS = -I. -I$(top_srcdir)/include -Iinclude -I$(top_srcdir)/src
 AM_CCASFLAGS = $(AM_CPPFLAGS)
diff --git a/libffi/Makefile.in b/libffi/Makefile.in
index 02bf401d15cf..5890c8c3db1f 100644
--- a/libffi/Makefile.in
+++ b/libffi/Makefile.in
@@ -381,7 +381,7 @@ nodist_libffi_la_SOURCES = $(am__append_1) $(am__append_2) $(am__append_3) $(am_
 libffi_convenience_la_SOURCES = $(libffi_la_SOURCES)
 nodist_libffi_convenience_la_SOURCES = $(nodist_libffi_la_SOURCES)
 AM_CFLAGS = -Wall -g -fexceptions
-libffi_la_LDFLAGS = -release $(VERSION)
+libffi_la_LDFLAGS = -version-info `grep -v '^\#' $(srcdir)/libtool-version`
 INCLUDES = -I. -I$(top_srcdir)/include -Iinclude -I$(top_srcdir)/src
 AM_CCASFLAGS = $(INCLUDES)
 all: fficonfig.h
diff --git a/libffi/libtool-version b/libffi/libtool-version
new file mode 100644
index 000000000000..f0bf8d698a24
--- /dev/null
+++ b/libffi/libtool-version
@@ -0,0 +1,6 @@
+# This file is used to maintain libtool version info for libffi.  See
+# the libtool manual to understand the meaning of the fields.  This is
+# a separate file so that version updates don't involve re-running
+# automake.
+# CURRENT:REVISION:AGE
+4:0:1
-- 
GitLab