[FFmpeg-devel] [PATCH] build: use Windows path for MSVC

Andreas Cadhalpun andreas.cadhalpun at googlemail.com
Sat Jan 23 14:44:00 CET 2016


Signed-off-by: Andreas Cadhalpun <Andreas.Cadhalpun at googlemail.com>
---

This hopefully fixes the build failures with MSVC.
I don't have such an environment to test this, though.

---
 configure | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/configure b/configure
index 8f4642b..64ce901 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=$(cygpath -w $dst_path)
     ;;
     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


More information about the ffmpeg-devel mailing list