aboutsummaryrefslogtreecommitdiffstats
path: root/src/build-data/makefile/gmake_dso.in
diff options
context:
space:
mode:
authorSimon Warta <[email protected]>2015-06-20 16:43:40 +0200
committerSimon Warta <[email protected]>2015-06-20 16:43:40 +0200
commitb5aa126daef403e7410a769dc262cf683ce36202 (patch)
tree07ac80b9ee3e92a155211360d72d2c56a1920d3a /src/build-data/makefile/gmake_dso.in
parentaa01b0f02df505ba7e6f52a6449fe7112ce2acae (diff)
Prefix gmake includes
Diffstat (limited to 'src/build-data/makefile/gmake_dso.in')
-rw-r--r--src/build-data/makefile/gmake_dso.in12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/build-data/makefile/gmake_dso.in b/src/build-data/makefile/gmake_dso.in
new file mode 100644
index 000000000..0e7974791
--- /dev/null
+++ b/src/build-data/makefile/gmake_dso.in
@@ -0,0 +1,12 @@
+SHARED_LIB_NAME = $(LIB_BASENAME).%{so_suffix}.%{so_abi_rev}.%{version_patch}
+SONAME = $(LIB_BASENAME).%{so_suffix}.%{so_abi_rev}
+SYMLINK = $(LIB_BASENAME).%{so_suffix}
+
+SHARED_LIB = %{out_dir}/$(SHARED_LIB_NAME)
+
+$(SHARED_LIB): $(LIBOBJS)
+ $(LIB_LINK_CMD) $(LDFLAGS) $(LIBOBJS) $(LIB_LINKS_TO) -o $(SHARED_LIB)
+ $(LN) $(SHARED_LIB_NAME) %{out_dir}/$(SONAME)
+ $(LN) $(SHARED_LIB_NAME) %{out_dir}/$(SYMLINK)
+
+LIBRARIES += $(SHARED_LIB)