diff options
author | Indu Bhagat <indu.bhagat@oracle.com> | 2023-06-27 11:52:43 -0700 |
---|---|---|
committer | Indu Bhagat <indu.bhagat@oracle.com> | 2023-06-27 12:01:56 -0700 |
commit | b91671f3f99a75be6573287e543b6eacb4acb895 (patch) | |
tree | 3264e13782e6151d805ecd32928d5cbc1663f7ea /libsframe/Makefile.am | |
parent | b625eff8a2346fe1107aa4ab7bbf4302f2c2136e (diff) | |
download | gdb-b91671f3f99a75be6573287e543b6eacb4acb895.zip gdb-b91671f3f99a75be6573287e543b6eacb4acb895.tar.gz gdb-b91671f3f99a75be6573287e543b6eacb4acb895.tar.bz2 |
libsframe: add library versioning
lisbframe was first released with Bintuils 2.40. As the library
evolves, some changes will break the ABI. Add library versioning for
users to manage these changes.
For the next release of the library (libsframe.so.1), incompatible ABI
changes are planned. These will include:
- Deprecation of some APIs, like sframe_get_funcdesc_with_addr (), and
- Change in the contract of some APIs (e.g., return type, behavior).
In libtool-version, set the current to 1 to prepare for the upcoming
release. Reset revision and age to 0.
Add libtool-version file to EXTRA_DIST.
libsframe/
* Makefile.am: Use libtool versioning.
* Makefile.in: Regenerated.
* libtool-version: New file.
Diffstat (limited to 'libsframe/Makefile.am')
-rw-r--r-- | libsframe/Makefile.am | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/libsframe/Makefile.am b/libsframe/Makefile.am index 2d73662..2d1d8ff 100644 --- a/libsframe/Makefile.am +++ b/libsframe/Makefile.am @@ -29,6 +29,7 @@ INCDIR = $(srcdir)/../include # include libctf for swap.h AM_CPPFLAGS = -I$(srcdir) -I$(srcdir)/../include -I$(srcdir)/../libctf AM_CFLAGS = @ac_libsframe_warn_cflags@ +libsframe_version_info = -version-info `grep -v '^\#' $(srcdir)/libtool-version` if INSTALL_LIBBFD lib_LTLIBRARIES = libsframe.la @@ -40,6 +41,10 @@ endif libsframe_la_SOURCES = sframe.c sframe-dump.c sframe-error.c libsframe_la_CPPFLAGS = $(AM_CPPFLAGS) +libsframe_la_LDFLAGS = $(libsframe_version_info) + +EXTRA_DIST = libtool-version +diststuff: $(EXTRA_DIST) info include doc/local.mk |