summaryrefslogtreecommitdiffstats
path: root/contrib/libreadline/support/shlib-install
diff options
context:
space:
mode:
Diffstat (limited to 'contrib/libreadline/support/shlib-install')
-rwxr-xr-xcontrib/libreadline/support/shlib-install20
1 files changed, 12 insertions, 8 deletions
diff --git a/contrib/libreadline/support/shlib-install b/contrib/libreadline/support/shlib-install
index 471fec7..6d45d0f 100755
--- a/contrib/libreadline/support/shlib-install
+++ b/contrib/libreadline/support/shlib-install
@@ -66,7 +66,7 @@ fi
# HP-UX requires that a shared library have execute permission
case "$host_os" in
hpux*) if [ -z "$uninstall" ]; then
- chmod 755 ${INSTALLDIR}/${LIBNAME}
+ chmod 555 ${INSTALLDIR}/${LIBNAME}
fi ;;
*) ;;
esac
@@ -84,6 +84,9 @@ case "$LIBNAME" in
;;
esac
+INSTALL_LINK1='cd $INSTALLDIR ; ln -s $LIBNAME $LINK1'
+INSTALL_LINK2='cd $INSTALLDIR ; ln -s $LIBNAME $LINK2'
+
#
# Create symlinks to the installed library. This section is incomplete.
#
@@ -92,13 +95,13 @@ case "$host_os" in
# libname.so.M -> libname.so.M.N
${echo} ${RM} ${INSTALLDIR}/$LINK2
if [ -z "$uninstall" ]; then
- ${echo} ln -s $INSTALLDIR/$LIBNAME ${INSTALLDIR}/$LINK2
+ ${echo} ln -s $LIBNAME ${INSTALLDIR}/$LINK2
fi
# libname.so -> libname.so.M.N
${echo} ${RM} ${INSTALLDIR}/$LINK1
if [ -z "$uninstall" ]; then
- ${echo} ln -s $INSTALLDIR/$LIBNAME ${INSTALLDIR}/$LINK1
+ ${echo} ln -s $LIBNAME ${INSTALLDIR}/$LINK1
fi
;;
@@ -106,7 +109,7 @@ solaris2*|aix4.[2-9]*|osf*|irix[56]*)
# libname.so -> libname.so.M
${echo} ${RM} ${INSTALLDIR}/$LINK1
if [ -z "$uninstall" ]; then
- ${echo} ln -s $INSTALLDIR/$LIBNAME ${INSTALLDIR}/$LINK1
+ ${echo} ln -s $LIBNAME ${INSTALLDIR}/$LINK1
fi
;;
@@ -117,19 +120,19 @@ freebsd3*)
# libname.so -> libname.so.M
${echo} ${RM} ${INSTALLDIR}/$LINK1
if [ -z "$uninstall" ]; then
- ${echo} ln -s $INSTALLDIR/$LIBNAME ${INSTALLDIR}/$LINK1
+ ${echo} ln -s $LIBNAME ${INSTALLDIR}/$LINK1
fi
else
# libname.so.M -> libname.so.M.N
${echo} ${RM} ${INSTALLDIR}/$LINK2
if [ -z "$uninstall" ]; then
- ${echo} ln -s $INSTALLDIR/$LIBNAME ${INSTALLDIR}/$LINK2
+ ${echo} ln -s $LIBNAME ${INSTALLDIR}/$LINK2
fi
# libname.so -> libname.so.M.N
${echo} ${RM} ${INSTALLDIR}/$LINK1
if [ -z "$uninstall" ]; then
- ${echo} ln -s $INSTALLDIR/$LIBNAME ${INSTALLDIR}/$LINK1
+ ${echo} ln -s $LIBNAME ${INSTALLDIR}/$LINK1
fi
fi
;;
@@ -138,7 +141,8 @@ hpux1*)
# libname.sl -> libname.M
${echo} ${RM} ${INSTALLDIR}/$LINK1.sl
if [ -z "$uninstall" ]; then
- ${echo} ln -s $INSTALLDIR/$LIBNAME ${INSTALLDIR}/${LINK1}.sl
+# ${echo} ln -s $LIBNAME ${INSTALLDIR}/${LINK1}.sl
+ ${echo} ln -s $LIBNAME ${INSTALLDIR}/${LINK1}
fi
;;
OpenPOWER on IntegriCloud