mpv is “autodetecting”. In other words, it doesn’t really use compile flags, but, just detects the presence of supporting libraries to turn them on/off. That’s why enabling Lua was relatively trivial, I just added LuaJIT as a dependency (not in this git tree yet, will take 1-2 days).