summaryrefslogtreecommitdiff
path: root/sysinfo/os/elf.mk
diff options
context:
space:
mode:
Diffstat (limited to 'sysinfo/os/elf.mk')
-rw-r--r--sysinfo/os/elf.mk6
1 files changed, 6 insertions, 0 deletions
diff --git a/sysinfo/os/elf.mk b/sysinfo/os/elf.mk
new file mode 100644
index 0000000..6878c6a
--- /dev/null
+++ b/sysinfo/os/elf.mk
@@ -0,0 +1,6 @@
+DSO_REF_VER = $(SHARED_LIB)
+DSO_REF_SONAME = $(SHARED_SONAME)
+DSO_REF_SOLINK = $(SHARED_SOLINK)
+
+LDFLAGS_SHARED += -Wl,-soname
+LDFLAGS_SHARED += -Wl,$(DSO_SONAME)