aboutsummaryrefslogtreecommitdiffstats
path: root/src/build-data/makefile
diff options
context:
space:
mode:
authorAlastair Houghton <[email protected]>2016-04-07 09:25:48 +0100
committerAlastair Houghton <[email protected]>2016-04-07 09:25:48 +0100
commitb850420855a56d862ca9c05ca1c0acbddae8475e (patch)
tree49178e809e653198867e74ff90683c1eab606542 /src/build-data/makefile
parent6a902a886c5b71ac16f2d957b5bdd319ab6eae0b (diff)
Fixed shared library behaviour on Darwin/OS X.
Diffstat (limited to 'src/build-data/makefile')
-rw-r--r--src/build-data/makefile/gmake_dso.in3
-rw-r--r--src/build-data/makefile/header.in1
2 files changed, 4 insertions, 0 deletions
diff --git a/src/build-data/makefile/gmake_dso.in b/src/build-data/makefile/gmake_dso.in
index fa167b780..13f7b0a3b 100644
--- a/src/build-data/makefile/gmake_dso.in
+++ b/src/build-data/makefile/gmake_dso.in
@@ -2,6 +2,9 @@ SONAME_PATCH = %{soname_patch}
SONAME_ABI = %{soname_abi}
SONAME_BASE = %{soname_base}
+DARWIN_COMPATIBILITY_VER = %{version_packed}.%{so_abi_rev}.0
+DARWIN_CURRENT_VER = %{version_packed}.%{so_abi_rev}.%{version_patch}
+
SHARED_LIB = %{out_dir}/$(SONAME_PATCH)
$(SHARED_LIB): $(LIBOBJS)
diff --git a/src/build-data/makefile/header.in b/src/build-data/makefile/header.in
index 6e432440c..f62f5ea0d 100644
--- a/src/build-data/makefile/header.in
+++ b/src/build-data/makefile/header.in
@@ -19,6 +19,7 @@ CLI_FLAGS = $(CXXFLAGS) $(WARN_FLAGS)
TEST_FLAGS = $(CXXFLAGS) $(WARN_FLAGS)
SCRIPTS_DIR = %{scripts_dir}
+INSTALLED_LIB_DIR = %{destdir}/%{libdir}
CLI_POST_LINK_CMD = %{cli_post_link_cmd}
TEST_POST_LINK_CMD = %{test_post_link_cmd}