summaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorYann Collet <yann.collet.73@gmail.com>2014-07-05 12:05:55 (GMT)
committerYann Collet <yann.collet.73@gmail.com>2014-07-05 12:05:55 (GMT)
commit070b33518a69c3f7905b0c5cd2fa9ffb50273848 (patch)
treed4e00009a2c3c21dda6ae7d08fa24dc8077b5dca /Makefile
parentfd51d0567b640541e5d4290488bf4ed02c6d6990 (diff)
downloadlz4-070b33518a69c3f7905b0c5cd2fa9ffb50273848.zip
lz4-070b33518a69c3f7905b0c5cd2fa9ffb50273848.tar.gz
lz4-070b33518a69c3f7905b0c5cd2fa9ffb50273848.tar.bz2
Fix : OS-X : library install name, thanks to Clemens Lang
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile2
1 files changed, 1 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index 8013903..b8c259c 100644
--- a/Makefile
+++ b/Makefile
@@ -58,10 +58,10 @@ endif
# OS X linker doesn't support -soname, and use different extension
# see : https://developer.apple.com/library/mac/documentation/DeveloperTools/Conceptual/DynamicLibraries/100-Articles/DynamicLibraryDesignGuidelines.html
ifeq ($(shell uname), Darwin)
- SONAME_FLAGS =
SHARED_EXT = dylib
SHARED_EXT_MAJOR = $(LIBVER_MAJOR).$(SHARED_EXT)
SHARED_EXT_VER = $(LIBVER).$(SHARED_EXT)
+ SONAME_FLAGS = -install_name $(PREFIX)/lib/liblz4.$(SHARED_EXT_MAJOR) -compatibility_version $(LIBVER_MAJOR) -current_version $(LIBVER)
else
SONAME_FLAGS = -Wl,-soname=liblz4.$(SHARED_EXT).$(LIBVER_MAJOR)
SHARED_EXT = so