From: Michael Adam Date: Sun, 6 Jul 2008 12:42:30 +0000 (+0200) Subject: build: fix the installlibtdb target to install the soname file of libtdb. X-Git-Tag: samba-3.3.0pre1~653 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=5c090762f769b645c411333aef2085362bb2e6cb;p=thirdparty%2Fsamba.git build: fix the installlibtdb target to install the soname file of libtdb. and create the .so file as a symlink (if appropriate) Michael --- diff --git a/source/Makefile.in b/source/Makefile.in index 78a4d196db6..5d0cce479dd 100644 --- a/source/Makefile.in +++ b/source/Makefile.in @@ -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