Repository navigation
Fix library detection on Apple Silicon - #1303
Merged
Merged
Conversation
gavtroy
approved these changes
Mar 11, 2024
gavtroy
left a comment
Collaborator
There was a problem hiding this comment.
looks fine to me, and still works fine on my (Linux) system
flyingmutant
force-pushed
the
faad-package-fix
branch
from
March 24, 2024 10:36
9da1ed3 to
4f70e9a
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
On Apple Silicon, Homebrew doesn't install ARM packages to the global header/library paths. This means that the common package dependencies
faad2andmp4v2can no longer be detected by checking/usr/local, soconfigurefails to find them and disables AAC and MP4.This is fixed by using
pkg-configto check for those dependencies, since Homebrew'spkg-configsearch path accounts for the CPU architecture, and gives the correct results on both Intel and ARM.I left the previous behavior in place as a fallback, for systems that have the libs installed globally without a working
pkg-config.Minor housekeeping: I also changed the temp file cleanup at the end to use
-rwithrm, since on macOS the configure script generates.dSYMdirectories from its temp file builds, and the script was printing errors every time it failed to delete them.