[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
libtool 1.5.14 on mingw: DLLs must be installed executable
From: |
Bruno Haible |
Subject: |
libtool 1.5.14 on mingw: DLLs must be installed executable |
Date: |
Fri, 8 Jul 2005 15:07:33 +0200 |
User-agent: |
KMail/1.5 |
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/address@hidden/msg23724.html
is that libtool installs the DLL without the execution bit. Here is a fix.
2005-07-08 Bruno Haible <address@hidden>
* 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'
- libtool 1.5.14 on mingw: DLLs must be installed executable,
Bruno Haible <=