summaryrefslogtreecommitdiffstats
path: root/contrib/ffmpeg
diff options
context:
space:
mode:
authorNomis101 <[email protected]>2020-01-16 21:22:05 -0500
committerBradley Sepos <[email protected]>2020-01-16 21:31:45 -0500
commitbcbba45e498428ada540fa52482c5c497407d6eb (patch)
tree14d452eaf43e3ea040496d74b5ee0aa994d29af5 /contrib/ffmpeg
parent88b4faef0f35efbc1b2948636098f872fe58bbf0 (diff)
contrib: Configure FFmpeg with --enable-small when using --optimize=size-aggressive.
Closes #2571.
Diffstat (limited to 'contrib/ffmpeg')
-rw-r--r--contrib/ffmpeg/module.defs5
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