aboutsummaryrefslogtreecommitdiffstats
path: root/src/build-data/makefile/dso.in
diff options
context:
space:
mode:
Diffstat (limited to 'src/build-data/makefile/dso.in')
-rw-r--r--src/build-data/makefile/dso.in10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/build-data/makefile/dso.in b/src/build-data/makefile/dso.in
new file mode 100644
index 000000000..7e9829fff
--- /dev/null
+++ b/src/build-data/makefile/dso.in
@@ -0,0 +1,10 @@
+SONAME = $(LIBNAME)-$(BRANCH).%{so_suffix}.%{so_abi_rev}
+SHARED_LIB = $(SONAME).%{version_patch}
+SYMLINK = $(LIBNAME)-$(BRANCH).%{so_suffix}
+
+$(SHARED_LIB): $(LIBOBJS)
+ $(LIB_LINK_CMD) $(LDFLAGS) $(LIBOBJS) $(LIB_LINKS_TO) -o $(SHARED_LIB)
+ $(LN) $(SHARED_LIB) $(SONAME)
+ $(LN) $(SHARED_LIB) $(SYMLINK)
+
+LIBRARIES += $(SHARED_LIB)