* Ralf Wildenhues wrote on Wed, Oct 01, 2008 at 11:20:00PM CEST: > [ moving from bug-libtool; this is > <http://thread.gmane.org/gmane.comp.gnu.libtool.bugs/6539> ] [...] > Atomic shared library install permissions on HP-UX. > > The HP-UX 11 runtime linker fails to mmap shared libraries > without execute permissions. Fixing them with postinstall_cmds > may be too late, as ln, sed, and chmod may link against the > library being installed. > > * libltdl/m4/libtool.m4 (install_override_mode): New LT_DECL. > (_LT_SYS_DYNAMIC_LINKER) [hpux9*, hpux10*, hpux11*]: Set it. > * libltdl/config/ltmain.m4sh (func_mode_install): Build a second > command line, $install_shared_prog, for the installation of the > shared library. Override resp. set the permission mode if > install_override_mode is nonempty. > * doc/libtool.texi (libtool script contents): Document it. > * tests/install.at (Install tests): New test. > * Makefile.am (TESTSUITE_AT): Adjust. > (TESTS_ENVIRONMENT): Pass INSTALL. > Report by Bruno Haible.
Pushed, with this small fix folded in to avoid an error with --disable-shared. Cheers, Ralf diff --git a/tests/install.at b/tests/install.at index dd92100..e0a075c 100644 --- a/tests/install.at +++ b/tests/install.at @@ -28,6 +28,8 @@ AT_KEYWORDS([libtool]) # Ensure that install_override_mode overrides the mode of the shared # library (and only the shared library). +AT_CHECK([$LIBTOOL --features | grep 'enable shared libraries' || exit 77], + [], [ignore]) sed 's,^\(install_override_mode=\).*,&755,' < $LIBTOOL > ./libtool LIBTOOL=./libtool chmod a+rx $LIBTOOL
