diff options
author | Michael Adam <obnox@samba.org> | 2011-05-06 17:00:32 +0200 |
---|---|---|
committer | Michael Adam <obnox@samba.org> | 2011-05-13 16:42:25 +0200 |
commit | 9c76fdd80c93ec23099987b1559f3a3f0f7b6ca5 (patch) | |
tree | b8ff2ed7137a77beda8acca68293694f8d38e977 | |
parent | 3f222513cc99b7ce048bcdaa8cc10f7b91616904 (diff) | |
download | samba-9c76fdd80c93ec23099987b1559f3a3f0f7b6ca5.tar.gz samba-9c76fdd80c93ec23099987b1559f3a3f0f7b6ca5.tar.bz2 samba-9c76fdd80c93ec23099987b1559f3a3f0f7b6ca5.zip |
s3:build: build libtdb.so.$VERSION with full version number instead only SO version
-rw-r--r-- | source3/Makefile.in | 28 |
1 files changed, 18 insertions, 10 deletions
diff --git a/source3/Makefile.in b/source3/Makefile.in index f25987f628..fb68154423 100644 --- a/source3/Makefile.in +++ b/source3/Makefile.in @@ -2111,6 +2111,7 @@ LIBTDB_SHARED_TARGET=@LIBTDB_SHARED_TARGET@ LIBTDB_SOVER=@LIBTDB_SOVER@ LIBTDB_FULLVER=@LIBTDB_FULLVER@ LIBTDB_SHARED_TARGET_SONAME=$(LIBTDB_SHARED_TARGET).$(LIBTDB_SOVER) +LIBTDB_SHARED_TARGET_FULLVER=$(LIBTDB_SHARED_TARGET).$(LIBTDB_FULLVER) LIBTDB_STATIC_TARGET=@LIBTDB_STATIC_TARGET@ LIBTDB_SYMS=$(srcdir)/exports/libtdb.@SYMSEXT@ LIBTDB_HEADERS=$(srcdir)/@tdbdir@/include/tdb.h @@ -2118,12 +2119,18 @@ LIBTDB_HEADERS=$(srcdir)/@tdbdir@/include/tdb.h $(LIBTDB_SYMS): $(LIBTDB_HEADERS) @$(MKSYMS_SH) $(AWK) $@ $(LIBTDB_HEADERS) + $(LIBTDB_SHARED_TARGET_SONAME): $(BINARY_PREREQS) $(LIBTDB_OBJ) $(LIBTDB_SYMS) @echo Linking shared library $@ @$(SHLD_DSO) $(LIBTDB_OBJ) $(LIBREPLACE_LIBS) $(TDB_DEPS) \ @SONAMEFLAG@`basename $@` -$(LIBTDB_SHARED_TARGET): $(LIBTDB_SHARED_TARGET_SONAME) +$(LIBTDB_SHARED_TARGET_FULLVER): $(LIBTDB_SHARED_TARGET_SONAME) + @rm -f $@ + @mv -f $(LIBTDB_SHARED_TARGET_SONAME) $(LIBTDB_SHARED_TARGET_FULLVER) + @ln -f -s `basename $(LIBTDB_SHARED_TARGET_FULLVER)` $(LIBTDB_SHARED_TARGET_SONAME) + +$(LIBTDB_SHARED_TARGET): $(LIBTDB_SHARED_TARGET_FULLVER) @rm -f $@ @ln -f -s `basename $(LIBTDB_SHARED_TARGET_SONAME)` $@ @@ -2167,16 +2174,17 @@ shlibs test_shlibs: @LIBTDB_SHARED@ showlibtdb: @echo "" - @echo "LIBTDB_SHARED = @LIBTDB_SHARED@" - @echo "LIBTDB_STATIC = @LIBTDB_STATIC@" - @echo "LIBTDB_LIBS = $(LIBTDB_LIBS)" + @echo "LIBTDB_SHARED = @LIBTDB_SHARED@" + @echo "LIBTDB_STATIC = @LIBTDB_STATIC@" + @echo "LIBTDB_LIBS = $(LIBTDB_LIBS)" @echo "" - @echo "LIBTDB_SHARED_TARGET = $(LIBTDB_SHARED_TARGET)" - @echo "LIBTDB_SOVER = $(LIBTDB_SOVER)" - @echo "LIBTDB_FULLVER = $(LIBTDB_FULLVER)" - @echo "LIBTDB_SHARED TARGET_SONAME = $(LIBTDB_SHARED_TARGET_SONAME)" - @echo "LIBTDB_STATIC_TARGET = $(LIBTDB_STATIC_TARGET)" - @echo "LIBTDB = $(LIBTDB)" + @echo "LIBTDB_SHARED_TARGET = $(LIBTDB_SHARED_TARGET)" + @echo "LIBTDB_SOVER = $(LIBTDB_SOVER)" + @echo "LIBTDB_FULLVER = $(LIBTDB_FULLVER)" + @echo "LIBTDB_SHARED TARGET_SONAME = $(LIBTDB_SHARED_TARGET_SONAME)" + @echo "LIBTDB_SHARED TARGET_FULLVER = $(LIBTDB_SHARED_TARGET_FULLVER)" + @echo "LIBTDB_STATIC_TARGET = $(LIBTDB_STATIC_TARGET)" + @echo "LIBTDB = $(LIBTDB)" showlibs:: showlibtdb |