mirror of
https://git.notmuchmail.org/git/notmuch
synced 2024-12-25 19:04:53 +01:00
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).
This commit is contained in:
parent
1036867897
commit
72ea1b71c6
1 changed files with 1 additions and 1 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue