提交 c5308eea 编写于 作者: S Stephen Hutchinson 提交者: 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: NTimothy Gu <timothygu99@gmail.com>
Signed-off-by: NMichael Niedermayer <michael@niedermayer.cc>
上级 32850053
......@@ -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
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册