S B
S B

Reputation: 8384

Why isn't FFmpeg compiler-optimized?

FFmpeg is compiled by first creating a debug build and then stripping debug symbols off.

LD      ffmpeg_g
CP      ffmpeg
STRIP   ffmpeg

Why not have compiler optimizations, O3 for instance?

Upvotes: 2

Views: 2195

Answers (1)

rogerdpack
rogerdpack

Reputation: 66761

The actual compiler flags aren't specified at link time, just compile time (previous to this), so chances are that it's actually compiled with -O2 or its like. As mentioned in one of the other comments, it's also (by default) compiled with debug symbols (which are a separate issue from optimization flags), so it keeps these in ffmpeg_g and strips them from ffmpeg, for a smaller executable (should you want that). Anyway you can see the compiler flags better if you run it like "make V=1" (may need to run a make clean first). HTH.

Upvotes: 1

Related Questions