diff options
author | Michael Adam <obnox@samba.org> | 2008-07-07 16:16:28 +0200 |
---|---|---|
committer | Michael Adam <obnox@samba.org> | 2008-07-07 20:33:58 +0200 |
commit | a386f431e4332a696a699e13c13166e5e47ecf91 (patch) | |
tree | 0da18b73d0d637225320da096e9d5c57d0ccaa6b | |
parent | 2a91d4adb5a6c0543b2d1e85b5fb9ddbfbb4c53e (diff) | |
download | samba-a386f431e4332a696a699e13c13166e5e47ecf91.tar.gz samba-a386f431e4332a696a699e13c13166e5e47ecf91.tar.bz2 samba-a386f431e4332a696a699e13c13166e5e47ecf91.zip |
build: fix installlibtalloc to not install symlink if the library is not there
Michael
(This used to be commit 52ccb52c8e42e748fcc05337849945ddc30d5efa)
-rw-r--r-- | source3/Makefile.in | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/source3/Makefile.in b/source3/Makefile.in index a91ae40b35..a303710ed9 100644 --- a/source3/Makefile.in +++ b/source3/Makefile.in @@ -1635,7 +1635,10 @@ installlibtalloc:: installdirs libtalloc @$(SHELL) $(srcdir)/script/installdirs.sh $(INSTALLPERMS_BIN) $(DESTDIR) $(LIBDIR) -$(INSTALLLIBCMD_SH) $(LIBTALLOC_SHARED_TARGET_SONAME) $(DESTDIR)$(LIBDIR) @rm -f $(DESTDIR)$(LIBDIR)/`basename $(LIBTALLOC_SHARED_TARGET)` - -ln -s -f `basename $(LIBTALLOC_SHARED_TARGET_SONAME)` $(DESTDIR)$(LIBDIR)/`basename $(LIBTALLOC_SHARED_TARGET)` + -if test -e $(LIBTALLOC_SHARD_TARGET_SONAME) ; then \ + ln -s -f `basename $(LIBTALLOC_SHARED_TARGET_SONAME)` \ + $(DESTDIR)$(LIBDIR)/`basename $(LIBTALLOC_SHARED_TARGET)` ; \ + fi -$(INSTALLLIBCMD_A) $(LIBTALLOC_STATIC_TARGET) $(DESTDIR)$(LIBDIR) @$(SHELL) $(srcdir)/script/installdirs.sh $(INSTALLPERMS_BIN) $(DESTDIR) ${prefix}/include -$(INSTALLCMD) -m $(INSTALLPERMS_DATA) $(LIBTALLOC_HEADERS) $(DESTDIR)${prefix}/include |