Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

FindFFMPEG: Support linking against static FFMPEG libraries on Linux #64

Merged

Conversation

nrusch
Copy link
Contributor

@nrusch nrusch commented Sep 21, 2023

Update FindFFMPEG module to facilitate linking against static FFMPEG libraries on Linux.

The changes do the following (currently only for static FFMPEG libraries):

  • Add the -Wl,-Bsymbolic flag to each imported target's INTERFACE_LINK_OPTIONS.
  • Using pkg-config to look up the transitive dependencies of each imported target, and including them in the target's INTERFACE_LINK_LIBRARIES, as well as populating INTERFACE_LINK_DIRECTORIES.

The second step could potentially be done for both static and dynamic FFMPEG libraries, but I kept the scope of this narrow to start with.

Fixes #60.

@linux-foundation-easycla
Copy link

linux-foundation-easycla bot commented Sep 21, 2023

CLA Signed

The committers listed above are authorized under a signed CLA.

  • ✅ login: nrusch / name: Nathan Rusch (500e7ce)
  • ✅ login: tedwaine (e734d17)

@nrusch nrusch force-pushed the ffmpeg_linux_static_link branch from b43080d to 500e7ce Compare September 21, 2023 19:17
@tedwaine tedwaine merged commit 0bd227a into AcademySoftwareFoundation:main Dec 8, 2023
2 checks passed
@tedwaine
Copy link
Contributor

tedwaine commented Dec 8, 2023

Thank you.

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.

Cannot link against static FFMPEG libraries on Linux
2 participants