Skip to content

Commit

Permalink
contrib: Explicitly pass arch to FFmpeg on macOS x86_64.
Browse files Browse the repository at this point in the history
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`.
  • Loading branch information
bradleysepos committed Jun 1, 2018
1 parent 7cddc6f commit e1dddfe
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions contrib/ffmpeg/module.defs
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit e1dddfe

Please sign in to comment.