[FFmpeg-devel] [PATCH] build: use Windows path for MSVC
Hendrik Leppkes
h.leppkes at gmail.com
Sat Jan 23 14:48:36 CET 2016
On Sat, Jan 23, 2016 at 2:44 PM, Andreas Cadhalpun
<andreas.cadhalpun at googlemail.com> wrote:
> 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
Unfortunately, cygpath is not guaranteed to be available, and in fact
is not on some working build setups today (ie. msys1 environments with
msvc)
More information about the ffmpeg-devel
mailing list