shlib-install (157184) | shlib-install (165670) |
---|---|
1#! /bin/sh 2# 3# shlib-install - install a shared library and do any necessary host-specific 4# post-installation configuration (like ldconfig) 5# 6# usage: shlib-install [-D] -O host_os -d installation-dir [-b bin-dir] -i install-prog [-U] library 7# 8# Chet Ramey --- 51 unchanged lines hidden (view full) --- 60 ${echo} eval ${INSTALLPROG} $LIBNAME ${INSTALLDIR}/${LIBNAME} 61else 62 ${echo} ${RM} ${INSTALLDIR}/${LIBNAME} 63fi 64 65# post-install/uninstall 66 67# HP-UX and Darwin/MacOS X require that a shared library have execute permission | 1#! /bin/sh 2# 3# shlib-install - install a shared library and do any necessary host-specific 4# post-installation configuration (like ldconfig) 5# 6# usage: shlib-install [-D] -O host_os -d installation-dir [-b bin-dir] -i install-prog [-U] library 7# 8# Chet Ramey --- 51 unchanged lines hidden (view full) --- 60 ${echo} eval ${INSTALLPROG} $LIBNAME ${INSTALLDIR}/${LIBNAME} 61else 62 ${echo} ${RM} ${INSTALLDIR}/${LIBNAME} 63fi 64 65# post-install/uninstall 66 67# HP-UX and Darwin/MacOS X require that a shared library have execute permission |
68# Linux does, too, and ldd warns about it |
|
68# Cygwin installs both a dll (which must go in $BINDIR) and an implicit 69# link library (in $libdir) 70case "$host_os" in | 69# Cygwin installs both a dll (which must go in $BINDIR) and an implicit 70# link library (in $libdir) 71case "$host_os" in |
71hpux*|darwin*|macosx*) | 72hpux*|darwin*|macosx*|linux*) |
72 if [ -z "$uninstall" ]; then 73 chmod 555 ${INSTALLDIR}/${LIBNAME} 74 fi ;; 75cygwin*) 76 IMPLIBNAME=`echo ${LIBNAME} \ 77 | sed -e 's,^cyg,lib,' -e 's,[0-9]*.dll$,.dll.a,'` 78 if [ -z "$uninstall" ]; then 79 ${echo} $RM ${BINDIR}/${LIBNAME}.${OLDSUFF} --- 116 unchanged lines hidden --- | 73 if [ -z "$uninstall" ]; then 74 chmod 555 ${INSTALLDIR}/${LIBNAME} 75 fi ;; 76cygwin*) 77 IMPLIBNAME=`echo ${LIBNAME} \ 78 | sed -e 's,^cyg,lib,' -e 's,[0-9]*.dll$,.dll.a,'` 79 if [ -z "$uninstall" ]; then 80 ${echo} $RM ${BINDIR}/${LIBNAME}.${OLDSUFF} --- 116 unchanged lines hidden --- |