From: Bruno Haible Date: Fri, 8 Jul 2005 15:03:15 +0000 (+0000) Subject: * libtool.m4 (postinstall_cmds) [cygwin,mingw,pw32]: Make DLL X-Git-Tag: release-1-5-20~25 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=a3236244e6215a2d4573102bd45477153762b986;p=thirdparty%2Flibtool.git * libtool.m4 (postinstall_cmds) [cygwin,mingw,pw32]: Make DLL executable after installing it. --- diff --git a/ChangeLog b/ChangeLog index af87d5c6e..984ce59e1 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2005-07-08 Bruno Haible + + * libtool.m4 (postinstall_cmds) [cygwin,mingw,pw32]: Make DLL + executable after installing it. + 2005-07-08 Ralf Wildenhues * ltmain.in (install mode): Do not assume `-f' needs an argument if diff --git a/libtool.m4 b/libtool.m4 index cf89e0fc2..b5613e465 100644 --- a/libtool.m4 +++ b/libtool.m4 @@ -731,7 +731,7 @@ AC_CACHE_VAL([lt_cv_sys_max_cmd_len], [dnl # nice to cause kernel panics so lets avoid the loop below. # First set a reasonable default. lt_cv_sys_max_cmd_len=16384 - # + # if test -x /sbin/sysconfig; then case `/sbin/sysconfig -q proc exec_disable_arg_limit` in *1*) lt_cv_sys_max_cmd_len=-1 ;; @@ -1275,7 +1275,8 @@ cygwin* | mingw* | pw32*) 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' + $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' @@ -5249,7 +5250,7 @@ ifelse([$1],[CXX],[ if test "$with_gnu_ld" = yes; then # If archive_cmds runs LD, not CC, wlarc should be empty wlarc='${wl}' - + # Set some defaults for GNU ld with shared library support. These # are reset later if shared libraries are not supported. Putting them # here allows them to be overridden if necessary. @@ -5270,7 +5271,7 @@ ifelse([$1],[CXX],[ *\ 2.11.*) ;; # other 2.11 versions *) supports_anon_versioning=yes ;; esac - + # See if GNU ld supports shared libraries. case $host_os in aix3* | aix4* | aix5*)