Find a way to make binaries that were build with brew work on older CPUs.
Brew builds some dependencies (last time I checked libass and lua) in a way that makes them incompatible with older CPUs if they were build on newer ones. Namely, if mpv was build on a SandyBridge or newer CPU, it won't work on any Mac with a pre-Sandy CPU.
If we want to distribute binaries for OS X, we need to figure this out, as @pigoz and me both have newer CPUs.
You should maybe check homebrew bottling mechanism or create a build script that builds all the dependencies without touching the CFLAGS/LDFLAGS. This is not a mpv bug at all, homebrew just changes CFLAGS/LDFLAGS of the software it builds.
Is there a bew bug report? Please link it.
It's not a bug, it's a design decision of homebrew. Basically they think they know they can decide better than the original developers of some software which compiler optimizations to to turn on.
Okay, some digging through their issues and pull requests revealed a --build-bottle option, which uses more generic CFLAGS. Building fontconfig (and possibly lua) with that option makes mpv run fine on older CPUs.
More info: https://github.com/mxcl/homebrew/pull/9350 , https://github.com/mxcl/homebrew/wiki/Bottles
Just a question, for the dependencies (mostly ffmpeg), are you going to to be using the versions on homebrew or the head version?