summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorLaurent Bercot <ska-skaware@skarnet.org>2015-08-12 18:33:04 +0000
committerLaurent Bercot <ska-skaware@skarnet.org>2015-08-12 18:33:04 +0000
commit88ee4ab7909044781040f79ce21a6bf66c90c2a9 (patch)
tree5f1d10ad4517b5c2ab811fbe2c7c70f17fcac42f /Makefile
parent4fab8059e7cce29b8643bf42a90de50b958011b4 (diff)
downloadskalibs-88ee4ab7909044781040f79ce21a6bf66c90c2a9.tar.xz
Link dynamic library against its -l dependencies, fix soname
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile6
1 files changed, 3 insertions, 3 deletions
diff --git a/Makefile b/Makefile
index 96a0028..16a1e2b 100644
--- a/Makefile
+++ b/Makefile
@@ -83,9 +83,9 @@ ifneq ($(exthome),)
update:
exec $(INSTALL) -l $(notdir $(home)) $(DESTDIR)$(exthome)
-global-links: $(DESTDIR)$(exthome) $(SHARED_LIBS:lib%.so.xyzzy=$(DESTDIR)$(sproot)/library.so/lib%.so)
+global-links: $(DESTDIR)$(exthome) $(SHARED_LIBS:lib%.so.xyzzy=$(DESTDIR)$(sproot)/library.so/lib%.so.$(version_M))
-$(DESTDIR)$(sproot)/library.so/lib%.so: $(DESTDIR)$(home)/library.so/lib%.so
+$(DESTDIR)$(sproot)/library.so/lib%.so.$(version_M): $(DESTDIR)$(home)/library.so/lib%.so.$(version_M)
exec $(INSTALL) -D -l ..$(subst $(sproot),,$(exthome))/library.so/$(<F) $@
.PHONY: update global-links
@@ -122,7 +122,7 @@ libskarnet.a.xyzzy: $(ALL_SOBJS)
exec $(RANLIB) $@
libskarnet.so.xyzzy: $(ALL_DOBJS)
- exec $(REALCC) -o $@ $(CFLAGS_ALL) $(CFLAGS_SHARED) $(LDFLAGS_ALL) $(LDFLAGS_SHARED) -Wl,-soname,libskarnet.so.$(version_l) $^
+ exec $(REALCC) -o $@ $(CFLAGS_ALL) $(CFLAGS_SHARED) $(LDFLAGS_ALL) $(LDFLAGS_SHARED) -Wl,-soname,libskarnet.so.$(version_M) $^ $(SOCKET_LIB) $(RT_LIB)
.PHONY: it all clean distclean tgz strip install install-data install-sysdeps install-dynlib install-lib install-include