aboutsummaryrefslogtreecommitdiffhomepage
path: root/lib/Makefile.local
diff options
context:
space:
mode:
authorGravatar Carl Worth <cworth@cworth.org>2010-04-14 16:18:19 -0700
committerGravatar Carl Worth <cworth@cworth.org>2010-04-14 16:18:19 -0700
commit72ea1b71c6b65965e3b205271d51c66ff66e13bf (patch)
tree2a0e1c42795e578752c56c5461a1444ba4303537 /lib/Makefile.local
parent1036867897c05215fa55863a10e5afdaef7dfd5d (diff)
Makefile: Add library version information on OS X.
This encodes the library version into the library, where the linking binary can pick it up, and the linker can even enforce mismatches in the minor release, (such as linking a binary against version 1.2 and then attempting to run it against version 1.1).
Diffstat (limited to 'lib/Makefile.local')
-rw-r--r--lib/Makefile.local2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Makefile.local b/lib/Makefile.local
index 1eb1f4ea..a0920905 100644
--- a/lib/Makefile.local
+++ b/lib/Makefile.local
@@ -28,7 +28,7 @@ LIBRARY_SUFFIX = dylib
LINKER_NAME = libnotmuch.$(LIBRARY_SUFFIX)
SONAME = libnotmuch.$(LIBNOTMUCH_VERSION_MAJOR).$(LIBRARY_SUFFIX)
LIBNAME = libnotmuch.$(LIBNOTMUCH_VERSION_MAJOR).$(LIBNOTMUCH_VERSION_MINOR).$(LIBNOTMUCH_VERSION_RELEASE).$(LIBRARY_SUFFIX)
-LIBRARY_LINK_FLAG = -dynamiclib -install_name $(SONAME)
+LIBRARY_LINK_FLAG = -dynamiclib -install_name $(SONAME) -compatibility_version $(LIBNOTMUCH_VERSION_MAJOR).$(LIBNOTMUCH_VERSION_MINOR) -current_version $(LIBNOTMUCH_VERSION_MAJOR).$(LIBNOTMUCH_VERSION_MINOR).$(LIBNOTMUCH_VERSION_RELEASE)
else
LIBRARY_SUFFIX = so
LINKER_NAME = libnotmuch.$(LIBRARY_SUFFIX)