]> git.ipfire.org Git - thirdparty/libtool.git/commitdiff
libtool: mingw hangs in func_convert_core_msys_to_w32
authorBrian Inglis <Brian.Inglis@SystematicSW.ab.ca>
Sun, 27 Jun 2021 23:09:02 +0000 (23:09 +0000)
committerIleana Dumitrescu <ileanadumitrescu95@gmail.com>
Wed, 14 Aug 2024 18:15:48 +0000 (21:15 +0300)
The `cmd //c ...` is is an invocation of the Windows console command
line shell `cmd`. The slashes are Windows console shell command line
option switch characters '/', with `cmd /c ...` meant to be
equivalent to `sh -c ...`.

It results in the Windows `cmd` shell being invoked as an interactive
console shell, as if invoked with the '/k' switch, but ignoring any
provided command string, hanging builds!

* build-aux/ltmain.in: Remove additional forward slash for option.

build-aux/ltmain.in

index fb43fef091cd1ecf37d6d363640be482f676a4dd..b69bf91ff4751e4cb340ca61be10c713c8144f46 100644 (file)
@@ -961,7 +961,7 @@ func_convert_core_msys_to_w32 ()
   $debug_cmd
 
   # awkward: cmd appends spaces to result
-  func_convert_core_msys_to_w32_result=`( cmd //c echo "$1" ) 2>/dev/null |
+  func_convert_core_msys_to_w32_result=`( cmd /c echo "$1" ) 2>/dev/null |
     $SED -e 's/[ ]*$//' -e "$sed_naive_backslashify"`
 }
 #end: func_convert_core_msys_to_w32