diff options
author | Nomis101 <[email protected]> | 2020-01-16 21:22:05 -0500 |
---|---|---|
committer | Bradley Sepos <[email protected]> | 2020-01-16 21:31:45 -0500 |
commit | bcbba45e498428ada540fa52482c5c497407d6eb (patch) | |
tree | 14d452eaf43e3ea040496d74b5ee0aa994d29af5 /contrib | |
parent | 88b4faef0f35efbc1b2948636098f872fe58bbf0 (diff) |
contrib: Configure FFmpeg with --enable-small when using --optimize=size-aggressive.
Closes #2571.
Diffstat (limited to 'contrib')
-rw-r--r-- | contrib/ffmpeg/module.defs | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/contrib/ffmpeg/module.defs b/contrib/ffmpeg/module.defs index 26d9b0687..fc6ff1242 100644 --- a/contrib/ffmpeg/module.defs +++ b/contrib/ffmpeg/module.defs @@ -60,6 +60,11 @@ FFMPEG.CONFIGURE.extra = \ --cc="$(FFMPEG.GCC.gcc)" \ --extra-ldflags="$(call fn.ARGS,FFMPEG.GCC,*archs *sysroot *minver ?extra) -L$(call fn.ABSOLUTE,$(CONTRIB.build/)lib)" +ifeq (size-aggressive,$(GCC.O)) +FFMPEG.CONFIGURE.extra += \ + --enable-small +endif + ifeq (1-linux,$(FEATURE.qsv)-$(HOST.system)) FFMPEG.CONFIGURE.extra += --enable-vaapi FFMPEG.CONFIGURE.extra += --disable-xlib |