Hi,

Using libtool 1.5.14 to install libiconv built for mingw, any program linked
against the such installed libiconv-2.dll crashes on startup with a dialog
box:
    The application failed to initialize properly (0xc0000022)

The reason, as explained in
http://www.mail-archive.com/cygwin@cygwin.com/msg23724.html
is that libtool installs the DLL without the execution bit. Here is a fix.

2005-07-08  Bruno Haible  <[EMAIL PROTECTED]>

        * libtool.m4 (postinstall_cmds) [cygwin,mingw,pw32]: Make DLL
        executable after installing it.

*** libtool.m4  19 May 2005 17:18:59 -0000      1.10
--- libtool.m4  8 Jul 2005 12:40:57 -0000
***************
*** 1227,1233 ****
        dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo 
\$dlname'\''`~
        dldir=$destdir/`dirname \$dlpath`~
        test -d \$dldir || mkdir -p \$dldir~
!       $install_prog $dir/$dlname \$dldir/$dlname'
      postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
        dlpath=$dir/\$dldll~
         $rm \$dlpath'
--- 1227,1234 ----
        dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo 
\$dlname'\''`~
        dldir=$destdir/`dirname \$dlpath`~
        test -d \$dldir || mkdir -p \$dldir~
!       $install_prog $dir/$dlname \$dldir/$dlname~
!       chmod a+x \$dldir/$dlname'
      postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
        dlpath=$dir/\$dldll~
         $rm \$dlpath'



_______________________________________________
Bug-libtool mailing list
Bug-libtool@gnu.org
http://lists.gnu.org/mailman/listinfo/bug-libtool

Reply via email to