summaryrefslogtreecommitdiff
path: root/source4
diff options
context:
space:
mode:
authorJelmer Vernooij <jelmer@samba.org>2006-03-22 20:42:33 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 13:59:06 -0500
commit268a86e1764aaab318d3af3d7ff4c9860a7ac3e4 (patch)
tree1d9d9a98f6341ed6d344670aa91dadc7d3a8f673 /source4
parente90d88106abc869d01f20cf319032eb95af04a53 (diff)
downloadsamba-268a86e1764aaab318d3af3d7ff4c9860a7ac3e4.tar.gz
samba-268a86e1764aaab318d3af3d7ff4c9860a7ac3e4.tar.bz2
samba-268a86e1764aaab318d3af3d7ff4c9860a7ac3e4.zip
r14661: Install symlinks for shared libraries
(This used to be commit 3286636dbb78485e57357a2e7c23579e808264b2)
Diffstat (limited to 'source4')
-rw-r--r--source4/main.mk4
-rwxr-xr-xsource4/script/installlib.sh4
2 files changed, 6 insertions, 2 deletions
diff --git a/source4/main.mk b/source4/main.mk
index 1eee9a57a5..44a1b2e0de 100644
--- a/source4/main.mk
+++ b/source4/main.mk
@@ -128,8 +128,8 @@ installbin: $(SBIN_PROGS) $(BIN_PROGS) installdirs
$(BIN_PROGS)
installlib: $(INSTALLABLE_SHARED_LIBS) $(STATIC_LIBS) installdirs
- @$(SHELL) $(srcdir)/script/installlib.sh $(DESTDIR)$(LIBDIR) $(INSTALLABLE_SHARED_LIBS)
- @$(SHELL) $(srcdir)/script/installlib.sh $(DESTDIR)$(LIBDIR) $(STATIC_LIBS)
+ @$(SHELL) $(srcdir)/script/installlib.sh $(DESTDIR)$(LIBDIR) "$(SHLIBEXT)" $(INSTALLABLE_SHARED_LIBS)
+ @$(SHELL) $(srcdir)/script/installlib.sh $(DESTDIR)$(LIBDIR) "$(STLIBEXT)" $(STATIC_LIBS)
installheader: headers installdirs
@$(PERL) $(srcdir)/script/installheader.pl $(DESTDIR)$(INCLUDEDIR) $(PUBLIC_HEADERS) $(DEFAULT_HEADERS)
diff --git a/source4/script/installlib.sh b/source4/script/installlib.sh
index 4e3d5f62c7..962c9562b1 100755
--- a/source4/script/installlib.sh
+++ b/source4/script/installlib.sh
@@ -1,17 +1,21 @@
#!/bin/sh
LIBDIR=$1
+SHLIBEXT=$2
shift
+shift
for p in $*; do
p2=`basename $p`
+ lnname=`echo $p2 | sed -e "s/\.$SHLIBEXT.*/.$SHLIBEXT/"`
echo Installing $p as $LIBDIR/$p2
if [ -f $LIBDIR/$p2 ]; then
rm -f $LIBDIR/$p2.old
mv $LIBDIR/$p2 $LIBDIR/$p2.old
fi
cp $p $LIBDIR/
+ ln -sf $p2 $LIBDIR/$lnname
done
cat << EOF