Mercurial > hg > octave-terminal
changeset 12708:e34f2bf7319d stable
maint: implement proper library versioning.
* libcruft/Makefile.am (libcruft_current): New variable.
(libcruft_revision): Likewise.
(libcruft_age): Likewise.
(libcruft_version_info): Likewise.
(libcruft_la_LDFLAGS): Use -version-info option, not -release.
* liboctave/Makefile.am (liboctave_current): New variable.
(liboctave_revision): Likewise.
(liboctave_age): Likewise.
(liboctave_version_info): Likewise.
(liboctave_la_LDFLAGS): Use -version-info option, not -release.
* liboctinterp/Makefile.am (liboctinterp_current): New variable.
(liboctinterp_revision): Likewise.
(liboctinterp_age): Likewise.
(liboctinterp_version_info): Likewise.
(liboctinterp_la_LDFLAGS): Use -version-info option, not -release.
author | John W. Eaton <jwe@octave.org> |
---|---|
date | Thu, 02 Jun 2011 17:35:00 -0400 |
parents | 7c8b50cd4fb4 |
children | 96180026afc5 |
files | libcruft/Makefile.am liboctave/Makefile.am src/Makefile.am |
diffstat | 3 files changed, 33 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/libcruft/Makefile.am +++ b/libcruft/Makefile.am @@ -34,8 +34,18 @@ @CRUFT_DLL_DEFS@ \ $(AM_CPPFLAGS) +# Increment these as needed and according to the rules in the libtool +# manual: +libcruft_current = 0 +libcruft_revision = 0 +libcruft_age = 0 + +libcruft_version_info = $(libcruft_current):$(libcruft_revision):$(libcruft_age) + libcruft_la_LDFLAGS = \ - -release $(version) $(NO_UNDEFINED_LDFLAG) @XTRA_CRUFT_SH_LDFLAGS@ \ + -version-info $(libcruft_version_info) \ + $(NO_UNDEFINED_LDFLAG) \ + @XTRA_CRUFT_SH_LDFLAGS@ \ -bindir $(bindir) libcruft_la_LIBADD = \
--- a/liboctave/Makefile.am +++ b/liboctave/Makefile.am @@ -526,7 +526,17 @@ $(ARPACK_CPPFLAGS) \ $(AM_CPPFLAGS) -liboctave_la_LDFLAGS = -release $(version) $(NO_UNDEFINED_LDFLAG) \ +# Increment these as needed and according to the rules in the libtool +# manual: +liboctave_current = 0 +liboctave_revision = 0 +liboctave_age = 0 + +liboctave_version_info = $(liboctave_current):$(liboctave_revision):$(liboctave_age) + +liboctave_la_LDFLAGS = \ + -version-info $(liboctave_version_info) \ + $(NO_UNDEFINED_LDFLAG) \ -bindir $(bindir) \ $(SPARSE_XLDFLAGS) \ $(ARPACK_LDFLAGS) \
--- a/src/Makefile.am +++ b/src/Makefile.am @@ -591,7 +591,17 @@ liboctinterp_la_CPPFLAGS = @OCTINTERP_DLL_DEFS@ $(AM_CPPFLAGS) -liboctinterp_la_LDFLAGS = -release $(version) $(NO_UNDEFINED_LDFLAG) \ +# Increment these as needed and according to the rules in the libtool +# manual: +liboctinterp_current = 0 +liboctinterp_revision = 0 +liboctinterp_age = 0 + +liboctinterp_version_info = $(liboctinterp_current):$(liboctinterp_revision):$(liboctinterp_age) + +liboctinterp_la_LDFLAGS = \ + -version-info $(liboctinterp_version_info) \ + $(NO_UNDEFINED_LDFLAG) \ -bindir $(bindir) CLEANFILES = \