[FFmpeg-cvslog] configure: force -mconsole when linking SDL under MinGW

Stephen Hutchinson git at videolan.org
Tue Aug 18 21:23:05 CEST 2015


ffmpeg | branch: master | Stephen Hutchinson <qyot27 at gmail.com> | Tue Aug 18 12:00:06 2015 -0400| [c5308eea29216c218b61599dc83911d2c1afe716] | committer: Michael Niedermayer

configure: force -mconsole when linking SDL under MinGW

When building SDL with MinGW, it sets -mwindows with the
assumption that the application is a GUI application. If this
is linked without passing -mconsole to configure via
--extra-ldflags, stdout will be silenced from cmd.exe while
running FFmpeg.

The -mwindows flag that causes this behavior is included in the
sdl_libs variable, so append -mconsole there rather than create
an sdl_ldflags case just to insert it (especially if -mconsole
must come *after* -mwindows in order to be effective).

Reviewed-by: Timothy Gu <timothygu99 at gmail.com>
Signed-off-by: Michael Niedermayer <michael at niedermayer.cc>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=c5308eea29216c218b61599dc83911d2c1afe716
---

 configure |    3 +++
 1 file changed, 3 insertions(+)

diff --git a/configure b/configure
index 49d4ff3..bc2160d 100755
--- a/configure
+++ b/configure
@@ -5376,6 +5376,9 @@ if ! disabled sdl; then
             disable sdl
         fi
     fi
+    if test $target_os = "mingw32"; then
+        sdl_libs="$sdl_libs -mconsole"
+    fi
 fi
 enabled sdl && add_cflags $sdl_cflags && add_extralibs $sdl_libs
 



More information about the ffmpeg-cvslog mailing list