]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
build: fix creation of talloc shared lib.
authorMichael Adam <obnox@samba.org>
Sun, 6 Jul 2008 00:29:02 +0000 (02:29 +0200)
committerMichael Adam <obnox@samba.org>
Mon, 7 Jul 2008 18:33:58 +0000 (20:33 +0200)
link the libtalloc.so.1 file and create libtalloc.so as a link

Michael

source/Makefile.in

index ca999a01ece32d3905d0e76954b92c118b0fd5a0..9c2100b4c1233f373ffa1513d6a252e8575fa68c 100644 (file)
@@ -144,6 +144,8 @@ CODEPAGEDIR = @codepagedir@
 PIDDIR = @piddir@
 
 LIBTALLOC_SHARED_TARGET=@LIBTALLOC_SHARED_TARGET@
+LIBTALLOC_SHARED_SOVER=$(shell grep \^$(LIBTALLOC_SHARED_TARGET) $(builddir)/library-versions | cut -d: -f2)
+LIBTALLOC_SHARED_TARGET_SONAME=$(LIBTALLOC_SHARED_TARGET).$(LIBTALLOC_SHARED_SOVER)
 LIBTALLOC_STATIC_TARGET=@LIBTALLOC_STATIC_TARGET@
 LIBTALLOC=$(LIBTALLOC_STATIC_TARGET) @LIBTALLOC_SHARED@
 LIBTALLOC_SYMS=$(srcdir)/exports/libtalloc.@SYMSEXT@
@@ -1608,11 +1610,12 @@ MKSYMS_SH = $(srcdir)/script/mksyms.sh
 $(LIBTALLOC_SYMS): $(LIBTALLOC_HEADERS)
        @$(MKSYMS_SH) $(AWK) $@ $(LIBTALLOC_HEADERS)
 
-$(LIBTALLOC_SHARED_TARGET): $(BINARY_PREREQS) $(LIBTALLOC_OBJ) $(LIBTALLOC_SYMS)
+$(LIBTALLOC_SHARED_TARGET_SONAME): $(BINARY_PREREQS) $(LIBTALLOC_OBJ) $(LIBTALLOC_SYMS)
        @echo Linking shared library $@
-       @$(SHLD_DSO) $(LIBTALLOC_OBJ) \
-               @SONAMEFLAG@`basename $@`.$(SONAME_VER)
-       @ln -s -f `basename $@` $@.$(SONAME_VER)
+       @$(SHLD_DSO) $(LIBTALLOC_OBJ) @SONAMEFLAG@`basename $@`
+
+$(LIBTALLOC_SHARED_TARGET): $(LIBTALLOC_SHARED_TARGET_SONAME)
+       @ln -s -f `basename $(LIBTALLOC_SHARED_TARGET_SONAME)` $@
 
 $(LIBTALLOC_STATIC_TARGET): $(BINARY_PREREQS) $(LIBTALLOC_OBJ0)
        @echo Linking non-shared library $@