On 23.01.2016 15:07, Hendrik Leppkes wrote:
> On Sat, Jan 23, 2016 at 2:51 PM, Andreas Cadhalpun
> <andreas.cadhal...@googlemail.com> wrote:
>> On 23.01.2016 14:48, Hendrik Leppkes wrote:
>>> Unfortunately, cygpath is not guaranteed to be available, and in fact
>>> is not on some working build setups today (ie. msys1 environments with
>>> msvc)
>>
>> Is there another way to get the Windows path on those environments?
>>
> 
> Not that I am aware.

Hmm, sed should be available everywhere.

Does the attached patch fix the MSVC builds?

Best regards,
Andreas

>From 73bc32b0d2af82ca9b8be5681d1a4f4e775f935e Mon Sep 17 00:00:00 2001
From: Andreas Cadhalpun <andreas.cadhal...@googlemail.com>
Date: Sat, 23 Jan 2016 16:23:36 +0100
Subject: [PATCH] build: use Windows path for MSVC

Signed-off-by: Andreas Cadhalpun <andreas.cadhal...@googlemail.com>
---
 configure | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/configure b/configure
index 8f4642b..9307326 100755
--- a/configure
+++ b/configure
@@ -3104,6 +3104,8 @@ else
         die "Out of tree builds are impossible with config.h in source dir."
 fi
 
+dst_path=$(pwd)
+
 for v in "$@"; do
     r=${v#*=}
     l=${v%"$r"}
@@ -3365,6 +3367,7 @@ case "$toolchain" in
         # issues with msys/win32 path conversion for MSVC parameters
         # such as -Fo<file> or -out:<file>.
         TMPDIR=.
+        dst_path=$(echo "$dst_path" | sed 's_/_\\_g' | sed 's_^\\\([^\\]*\)_\U\1:_')
     ;;
     icl)
         cc_default="icl"
@@ -6251,7 +6254,7 @@ SRC_PATH=$source_path
 ifndef MAIN_MAKEFILE
 SRC_PATH:=\$(SRC_PATH:.%=..%)
 endif
-DST_PATH=$(pwd)
+DST_PATH=$dst_path
 CC_IDENT=$cc_ident
 ARCH=$arch
 INTRINSICS=$intrinsics
-- 
2.7.0.rc3

_______________________________________________
ffmpeg-devel mailing list
ffmpeg-devel@ffmpeg.org
http://ffmpeg.org/mailman/listinfo/ffmpeg-devel

Reply via email to