summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorBrian Lu <brian.lu@sun.com>2009-12-17 14:48:59 +0800
committerStefan Metzmacher <metze@samba.org>2010-01-06 14:27:44 +0100
commiteff6022d51f578dfc48f1d66dd8ec1e860dfd7b3 (patch)
treefaf98b7e4589c3b07c6687b89b8f6eac58ad9acd /lib
parentf408d58d95f5ac10849742fdcdf7e6160196e8e0 (diff)
downloadsamba-eff6022d51f578dfc48f1d66dd8ec1e860dfd7b3.tar.gz
samba-eff6022d51f578dfc48f1d66dd8ec1e860dfd7b3.tar.bz2
samba-eff6022d51f578dfc48f1d66dd8ec1e860dfd7b3.zip
talloc: create symbol links to shared libraries see https://bugzilla.samba.org/show_bug.cgi?id=6991 for details
Signed-off-by: Stefan Metzmacher <metze@samba.org>
Diffstat (limited to 'lib')
-rw-r--r--lib/talloc/talloc.mk5
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/talloc/talloc.mk b/lib/talloc/talloc.mk
index a563d613d6..fc90f4d41e 100644
--- a/lib/talloc/talloc.mk
+++ b/lib/talloc/talloc.mk
@@ -1,5 +1,6 @@
TALLOC_OBJ = $(tallocdir)/talloc.o
+TALLOC_SHLIB = libtalloc.$(SHLIBEXT)
TALLOC_SOLIB = libtalloc.$(SHLIBEXT).$(TALLOC_VERSION)
TALLOC_SONAME = libtalloc.$(SHLIBEXT).$(TALLOC_VERSION_MAJOR)
TALLOC_STLIB = libtalloc.a
@@ -25,6 +26,10 @@ install:: all
if [ -f talloc.3 ];then ${INSTALLCMD} -m 644 talloc.3 $(DESTDIR)$(mandir)/man3; fi
which swig >/dev/null 2>&1 && ${INSTALLCMD} -d $(DESTDIR)`swig -swiglib` || true
which swig >/dev/null 2>&1 && ${INSTALLCMD} -m 644 talloc.i $(DESTDIR)`swig -swiglib` || true
+ rm -f $(DESTDIR)$(libdir)/$(TALLOC_SONAME)
+ ln -s $(TALLOC_SOLIB) $(DESTDIR)$(libdir)/$(TALLOC_SONAME)
+ rm -f $(DESTDIR)$(libdir)/$(TALLOC_SHLIB)
+ ln -s $(TALLOC_SOLIB) $(DESTDIR)$(libdir)/$(TALLOC_SHLIB)
doc:: talloc.3 talloc.3.html