From e1dddfebf0976245f6c9295fa5fef07c8a695db9 Mon Sep 17 00:00:00 2001 From: Bradley Sepos Date: Fri, 1 Jun 2018 16:13:55 -0400 Subject: [PATCH] contrib: Explicitly pass arch to FFmpeg on macOS x86_64. Fixes FFmpeg configure error on macOS: ``` ./configure: line 588: eval: --: invalid option eval: usage: eval [arg ...] make[1]: *** [contrib/ffmpeg/.stamp.ffmpeg.configure] Error 2 ``` ...caused by attempting to `eval --arch=x86_64=yes`. --- contrib/ffmpeg/module.defs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/contrib/ffmpeg/module.defs b/contrib/ffmpeg/module.defs index c8d729ff7..36d04b2db 100644 --- a/contrib/ffmpeg/module.defs +++ b/contrib/ffmpeg/module.defs @@ -73,6 +73,9 @@ FFMPEG.CONFIGURE.extra += \ ifeq (darwin,$(BUILD.system)) FFMPEG.CONFIGURE.extra += --disable-audiotoolbox --disable-coreimage --disable-videotoolbox + ifeq (x86_64,$(BUILD.arch)) + FFMPEG.CONFIGURE.extra += --arch=x86_64 + endif endif ## check against tuple: B-SYSTEM where B is { 0 | 1 } for cross-compiling flag -- 2.40.0