summaryrefslogtreecommitdiffstats
path: root/config
diff options
context:
space:
mode:
authorJames Laird <jlaird@hdfgroup.org>2005-04-18 15:48:32 (GMT)
committerJames Laird <jlaird@hdfgroup.org>2005-04-18 15:48:32 (GMT)
commitd8b08dbc85dfe28d926caf3c03e9d60c63d80794 (patch)
treea4d490edda359e15621183e2f484258dca31cf3d /config
parent28a3ec72092c34489522d72363adbd9a56a0cee5 (diff)
downloadhdf5-d8b08dbc85dfe28d926caf3c03e9d60c63d80794.zip
hdf5-d8b08dbc85dfe28d926caf3c03e9d60c63d80794.tar.gz
hdf5-d8b08dbc85dfe28d926caf3c03e9d60c63d80794.tar.bz2
[svn-r10627] Purpose:
Feature - libtool shared library versioning Description: Libtool provides a mechanism for different versions of the same shared library to be distinguished. Now this is applied to HDF5 when it is built as a shared library. Solution: The version number is stored in config/lt_vers.am, and included in src/Makefile.am. This number will be automatically updated by bin/h5vers; developers only need to update it when they change the API. *** IMPORTANT *** Any time the API changes, the version number in config/lt_vers.am must be updated! Platforms tested: mir, eirene, verbena, modi4 Misc. update:
Diffstat (limited to 'config')
-rw-r--r--config/lt_vers.am26
1 files changed, 26 insertions, 0 deletions
diff --git a/config/lt_vers.am b/config/lt_vers.am
new file mode 100644
index 0000000..a6a6cd6
--- /dev/null
+++ b/config/lt_vers.am
@@ -0,0 +1,26 @@
+# Add libtool shared library version numbers to the HDF5 library
+# See libtool versioning documentation online.
+LT_VERS_INTERFACE = 0
+LT_VERS_REVISION = 0
+LT_VERS_AGE = 0
+
+## If the API changes *at all*, increment LT_VERS_INTERFACE and
+## reset LT_VERS_REVISION to 0.
+##
+## If the API changes but no functions are removed, also increment
+## LT_VERS_AGE.
+## If any functions are removed from the API, reset LT_VERS_AGE
+## to 0.
+##
+## If the source changes but there are no API changes, increment
+## LT_VERS_REVISION. This will happen automatically when
+## bin/h5vers is run, but doing it manually shouldn't hurt
+## anything.
+##
+## Note that this versioning system doesn't attempt to handle
+## the effects of the H5_V1_x_COMPAT flag.
+##
+## Since the revision number is automatically incremented by
+## bin/h5vers, don't move LT_VERS_REVISION from the fourth line
+## without also editing the script!
+