]> git.ipfire.org Git - thirdparty/automake.git/commitdiff
compile: Improve support for C++ compilations on MSYS2.
authorBruno Haible <bruno@clisp.org>
Mon, 3 Feb 2025 22:18:16 +0000 (14:18 -0800)
committerKarl Berry <karl@freefriends.org>
Mon, 3 Feb 2025 22:18:16 +0000 (14:18 -0800)
* lib/compile (func_file_conv): Use 'cygpath -w', not 'cygpath -m'
(c:\... vs. c:/... resp.).
* lib/ar-lib (func_file_conv): Likewise.

lib/ar-lib
lib/compile

index f85f879d852720d9f24a44e6d46935a13b97b114..d0a7b5c8a548ca4e1bf832b5503b3eb4a53163dc 100755 (executable)
@@ -77,7 +77,7 @@ func_file_conv ()
          file=`cmd //C echo "$file " | sed -e 's/"\(.*\) " *$/\1/'`
          ;;
        cygwin)
-         file=`cygpath -m "$file" || echo "$file"`
+         file=`cygpath -w "$file" || echo "$file"`
          ;;
        wine)
          file=`winepath -w "$file" || echo "$file"`
index fc738d3d9660fb09009b29421209a2ca3959145e..c404e89e478d0f9849b5a6a3d2b8cac7f97f38b7 100755 (executable)
@@ -81,7 +81,7 @@ func_file_conv ()
          file=`cmd //C echo "$file " | sed -e 's/"\(.*\) " *$/\1/'`
          ;;
        cygwin/*)
-         file=`cygpath -m "$file" || echo "$file"`
+         file=`cygpath -w "$file" || echo "$file"`
          ;;
        wine/*)
          file=`winepath -w "$file" || echo "$file"`