summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
authorMichael Adam <obnox@samba.org>2008-07-06 20:48:00 +0200
committerMichael Adam <obnox@samba.org>2008-07-07 20:34:01 +0200
commitc3bdfeade265e74e3ab2872b65c56315cd0dfcd0 (patch)
tree1805ff12626719be42a693c827a11cebde896cfd /source3
parent6ec6f69d02a711269ace0350be9e50f28664b924 (diff)
downloadsamba-c3bdfeade265e74e3ab2872b65c56315cd0dfcd0.tar.gz
samba-c3bdfeade265e74e3ab2872b65c56315cd0dfcd0.tar.bz2
samba-c3bdfeade265e74e3ab2872b65c56315cd0dfcd0.zip
build: fix creation of libwbclient shared lib by crating soname file
and adding .so file as a symlink Michael (This used to be commit beab1a31484836014aab5d2bcb38995435f6218b)
Diffstat (limited to 'source3')
-rw-r--r--source3/Makefile.in11
1 files changed, 8 insertions, 3 deletions
diff --git a/source3/Makefile.in b/source3/Makefile.in
index c7d66e83bd..593b8897ae 100644
--- a/source3/Makefile.in
+++ b/source3/Makefile.in
@@ -1692,6 +1692,8 @@ LIBWBCLIENT_OBJ = $(LIBWBCLIENT_OBJ0) \
@LIBTALLOC_STATIC@ $(LIBREPLACE_OBJ)
LIBWBCLIENT_SHARED_TARGET=@LIBWBCLIENT_SHARED_TARGET@
+LIBWBCLIENT_SOVER=$(shell grep \^$(LIBWBCLIENT_SHARED_TARGET) $(builddir)/library-versions | cut -d: -f2)
+LIBWBCLIENT_SHARED_TARGET_SONAME=$(LIBWBCLIENT_SHARED_TARGET).$(LIBWBCLIENT_SOVER)
LIBWBCLIENT_STATIC_TARGET=@LIBWBCLIENT_STATIC_TARGET@
LIBWBCLIENT=@LIBWBCLIENT_STATIC@ @LIBWBCLIENT_SHARED@
LIBWBCLIENT_SYMS=$(srcdir)/exports/libwbclient.@SYMSEXT@
@@ -1700,11 +1702,14 @@ LIBWBCLIENT_HEADERS=$(srcdir)/nsswitch/libwbclient/wbclient.h
$(LIBWBCLIENT_SYMS): $(LIBWBCLIENT_HEADERS)
@$(MKSYMS_SH) $(AWK) $@ $(LIBWBCLIENT_HEADERS)
-$(LIBWBCLIENT_SHARED_TARGET): $(BINARY_PREREQS) $(LIBWBCLIENT_OBJ) $(LIBWBCLIENT_SYMS) @LIBTALLOC_SHARED@
+$(LIBWBCLIENT_SHARED_TARGET_SONAME): $(BINARY_PREREQS) $(LIBWBCLIENT_OBJ) $(LIBWBCLIENT_SYMS) @LIBTALLOC_SHARED@
@echo Linking shared library $@
@$(SHLD_DSO) @LIBTALLOC_LIBS@ $(LIBWBCLIENT_OBJ) \
- @SONAMEFLAG@`basename $@`.$(SONAME_VER)
- @ln -s -f `basename $@` $@.$(SONAME_VER)
+ @SONAMEFLAG@`basename $@`
+
+$(LIBWBCLIENT_SHARED_TARGET): $(LIBWBCLIENT_SHARED_TARGET_SONAME)
+ @rm -f $@
+ @ln -s -f `basename $(LIBWBCLIENT_SHARED_TARGET_SONAME)` $@
$(LIBWBCLIENT_STATIC_TARGET): $(BINARY_PREREQS) $(LIBWBCLIENT_OBJ0) $(WBCOMMON_OBJ)
@echo Linking non-shared library $@