[FFmpeg-devel] [PATCH] "configure" breaks on MSYS2 MINGW64

Peter Belkner pbelkner at snafu.de
Sat Sep 12 11:06:35 CEST 2015


Hi,

building current FFmpeg breaks on MSYS2 MINGW64 
(http://sourceforge.net/projects/msys2/) with error "Unknown OS 
'mingw64_nt-6.0'." from "configure".

Probably "mingw64_nt-6.0" results from "uname -s" on MSYS2 MINGW64:

    $ uname -s
    MINGW64_NT-6.0

The attached patch seems to fix it.

Regards, Peter

-------------- next part --------------
diff -rc ./a/ffmpeg/configure ./b/ffmpeg/configure
*** ./a/ffmpeg/configure	Fri Sep 11 19:20:03 2015
--- ./b/ffmpeg/configure	Sat Sep 12 10:16:52 2015
***************
*** 3297,3303 ****
  
  exesuf() {
      case $1 in
!         mingw32*|win32|win64|cygwin*|*-dos|freedos|opendos|os/2*|symbian) echo .exe ;;
      esac
  }
  
--- 3297,3303 ----
  
  exesuf() {
      case $1 in
!         mingw32*|mingw64*|win32|win64|cygwin*|*-dos|freedos|opendos|os/2*|symbian) echo .exe ;;
      esac
  }
  
***************
*** 4342,4348 ****
          enabled_any pic shared x86_64 ||
              { check_cflags -mdynamic-no-pic && add_asflags -mdynamic-no-pic; }
          ;;
!     mingw32*)
          if test $target_os = "mingw32ce"; then
              disable network
          else
--- 4342,4348 ----
          enabled_any pic shared x86_64 ||
              { check_cflags -mdynamic-no-pic && add_asflags -mdynamic-no-pic; }
          ;;
!     mingw32*|mingw64*)
          if test $target_os = "mingw32ce"; then
              disable network
          else


More information about the ffmpeg-devel mailing list