[FFmpeg-devel] [PATCH] configure: fix linking with MSVC when using --disable-optimizations

Carl Eugen Hoyos ceffmpeg at gmail.com
Fri Dec 16 02:20:22 EET 2016


2016-12-14 16:47 GMT+01:00 Steve Lhomme <robux4 at gmail.com>:
> From: Steve Lhomme <robux4 at gmail.com>
>
> Without any optimization flags, MSVC does no dead code elimination (DCE) at
> all, even for the most trivial cases. DCE is a prerequisite for building ffmpeg
> correctly, otherwise there are undefined references to functions for other
> architectures and disabled components.
>
> -Os -Og is the minimal optimization flags for MSVC that does include DCE.

The patch looks good to me if -Og alone doesn't help,
thank you for the improved commit message.

Carl Eugen


More information about the ffmpeg-devel mailing list