mirror of
https://github.com/samba-team/samba.git
synced 2025-01-11 05:18:09 +03:00
r14661: Install symlinks for shared libraries
This commit is contained in:
parent
438636c475
commit
3286636dbb
@ -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)
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user