summaryrefslogtreecommitdiff
path: root/sysinfo
diff options
context:
space:
mode:
authormidipix <writeonce@midipix.org>2016-04-26 11:55:17 -0400
committermidipix <writeonce@midipix.org>2016-04-26 11:55:17 -0400
commit74e48525f7141f8f6f89adce9ce2270144267712 (patch)
tree672c02451c57b178550f12e04e2fee517ccb8280 /sysinfo
parent2bc17534f0bba1de06210535c20311db70c417c4 (diff)
downloadslibtool-74e48525f7141f8f6f89adce9ce2270144267712.tar.bz2
slibtool-74e48525f7141f8f6f89adce9ce2270144267712.tar.xz
build system: move implib and soname defs to pe- and elf-specific recipes.
Diffstat (limited to 'sysinfo')
-rw-r--r--sysinfo/os/elf.mk2
-rw-r--r--sysinfo/os/pe.mk4
2 files changed, 6 insertions, 0 deletions
diff --git a/sysinfo/os/elf.mk b/sysinfo/os/elf.mk
new file mode 100644
index 0000000..5a3940f
--- /dev/null
+++ b/sysinfo/os/elf.mk
@@ -0,0 +1,2 @@
+LDFLAGS_SHARED += -Wl,-soname
+LDFLAGS_SHARED += -Wl,$(DSO_SONAME)
diff --git a/sysinfo/os/pe.mk b/sysinfo/os/pe.mk
index 0b50df2..58144aa 100644
--- a/sysinfo/os/pe.mk
+++ b/sysinfo/os/pe.mk
@@ -1,5 +1,9 @@
LDFLAGS_IMPLIB += -Wl,--output-def
LDFLAGS_IMPLIB += -Wl,$(IMPLIB_DEF)
+LDFLAGS_SHARED += $(LDFLAGS_IMPLIB)
+
+LDFLAGS_SHARED += -Wl,-soname
+LDFLAGS_SHARED += -Wl,$(DSO_SONAME)
implib: implib-ver implib-soname implib-solink