]> git.ipfire.org Git - thirdparty/libtool.git/commitdiff
ltmain.in: Fix file path conversions for MSYS2 and MSVC
authorKirill Makurin <maiddaisuki@outlook.com>
Fri, 2 Jan 2026 18:22:57 +0000 (20:22 +0200)
committerIleana Dumitrescu <ileanadumitrescu95@gmail.com>
Fri, 2 Jan 2026 18:22:57 +0000 (20:22 +0200)
The result of cygpath file path conversions are not stored correctly
causing the path conversions to fail on MSYS2 and MSVC.

Reported: https://debbugs.gnu.org/cgi/bugreport.cgi?bug=79468

* build-aux/ltmain.in: Replace func_convert_core_msys_to_w32_result
  with func_convert_core_msys_to_w32_with_cygpath_result.

build-aux/ltmain.in

index 27e18c57eb0b7dc1113d5d51975100287a993245..68593972189eb5d29d6f49979b8885b6b6336add 100644 (file)
@@ -1054,11 +1054,11 @@ func_convert_core_msys_to_w32_with_cygpath ()
 
   # Since MSYS2 is packaged with cygpath, call cygpath in $PATH; no need
   # to use LT_CYGPATH in this case.
-  func_convert_core_msys_to_w32_result=`cygpath "$@" 2>/dev/null |
+  func_convert_core_msys_to_w32_with_cygpath_result=`cygpath "$@" 2>/dev/null |
        $SED -e 's/[ ]*$//' -e "$sed_naive_backslashify"`
   if test "$?" -ne 0; then
       # on failure, ensure result is empty
-      func_convert_core_msys_to_w32_result=
+      func_convert_core_msys_to_w32_with_cygpath_result=
   fi
 }
 #end: func_convert_core_msys_to_w32_with_cygpath