libtool-patches
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: libtool 2.2.6 does not install libraries correctly on HP-UX


From: Ralf Wildenhues
Subject: Re: libtool 2.2.6 does not install libraries correctly on HP-UX
Date: Sun, 5 Oct 2008 12:43:45 +0200
User-agent: Mutt/1.5.18 (2008-05-17)

* 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




reply via email to

[Prev in Thread] Current Thread [Next in Thread]