]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
build: fix the installlibtdb target to install the soname file of libtdb.
authorMichael Adam <obnox@samba.org>
Sun, 6 Jul 2008 12:42:30 +0000 (14:42 +0200)
committerMichael Adam <obnox@samba.org>
Mon, 7 Jul 2008 18:33:59 +0000 (20:33 +0200)
and create the .so file as a symlink (if appropriate)

Michael

source/Makefile.in

index 78a4d196db664ee80d9cbe65827d7b7d686a677d..5d0cce479dd65e97cc11b592b433747660db1b31 100644 (file)
@@ -1701,7 +1701,12 @@ cleanlibtdb::
 
 installlibtdb:: installdirs libtdb
        @$(SHELL) $(srcdir)/script/installdirs.sh $(INSTALLPERMS_BIN) $(DESTDIR) $(LIBDIR)
-       -$(INSTALLLIBCMD_SH) $(LIBTDB_SHARED_TARGET) $(DESTDIR)$(LIBDIR)
+       -$(INSTALLLIBCMD_SH) $(LIBTDB_SHARED_TARGET_SONAME) $(DESTDIR)$(LIBDIR)
+       @rm -f $(DESTDIR)$(LIBDIR)/`basename $(LIBTDB_SHARED_TARGET)`
+       -if test -e $(LIBTDB_SHARED_TARGET_SONAME) ; then \
+               ln -s -f `basename $(LIBTDB_SHARED_TARGET_SONAME)` \
+                       $(DESTDIR)$(LIBDIR)/`basename $(LIBTDB_SHARED_TARGET)` ; \
+       fi
        -$(INSTALLLIBCMD_A) $(LIBTDB_STATIC_TARGET) $(DESTDIR)$(LIBDIR)
        @$(SHELL) $(srcdir)/script/installdirs.sh $(INSTALLPERMS_BIN) $(DESTDIR) ${prefix}/include
        -$(INSTALLCMD) -m $(INSTALLPERMS_DATA) $(LIBTDB_HEADERS) $(DESTDIR)${prefix}/include