Skip to content

Disable SDL2 and ffplay when ENABLE_FFPLAY is false to eliminate unwanted SDL2 linkage#39

Open
NicolasReibnitz wants to merge 2 commits into
Vargol:masterfrom
NicolasReibnitz:master
Open

Disable SDL2 and ffplay when ENABLE_FFPLAY is false to eliminate unwanted SDL2 linkage#39
NicolasReibnitz wants to merge 2 commits into
Vargol:masterfrom
NicolasReibnitz:master

Conversation

@NicolasReibnitz

Copy link
Copy Markdown

When building with ENABLE_FFPLAY=false (the default), the scripts only omitted the --enable-sdl2 flag, but didn’t explicitly disable SDL2 or ffplay. As a result, pkg-config still detected SDL2 and injected a /opt/homebrew/.../libSDL2-2.0.0.dylib dependency into the “static” binary.

This PR adds an else branch in both build-ffmpeg.sh and build-ffmpeg-topaz.sh so that whenever ENABLE_FFPLAY is not TRUE, we pass --disable-sdl2 --disable-ffplay to ./configure.

Verification:
After rebuilding with ENABLE_FFPLAY=false:

otool -L out/bin/ffmpeg

no longer lists any SDL2 dylib, only system frameworks under /System/Library/… and /usr/lib/.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant