From 8583d07b75926ac2603b7c45f773fcafc3f0772f Mon Sep 17 00:00:00 2001 From: Michael Adam Date: Sun, 6 Jul 2008 14:42:30 +0200 Subject: build: fix the installlibtdb target to install the soname file of libtdb. and create the .so file as a symlink (if appropriate) Michael (This used to be commit 5c090762f769b645c411333aef2085362bb2e6cb) --- source3/Makefile.in | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/source3/Makefile.in b/source3/Makefile.in index 78a4d196db..5d0cce479d 100644 --- a/source3/Makefile.in +++ b/source3/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 -- cgit