Best Practices for open source builds targeting Homebrew installed libraries on M1 and Intel #2477
Unanswered
jspiro
asked this question in
Everyday usage
Replies: 1 comment 2 replies
-
I think the best solution would be to use a standard like pkg-config and CMake to let the system determine where dependencies live. Any reliance on specific homebrew paths only works if users have the exact same setup you expect. |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I'm a maintainer of GitX and we have hundreds of references in our third party dependencies to /usr/local for libraries, including in our precompiled binary, which doesn't start on an M1 out of the box. Even if we install dependencies like openssl, they're not found at
/opt/homebrew
, and the binary crashes on load:What are the best practices for build systems and binaries to support Intel and M1 when dependent on Homebrew? I'm assuming the change was made with a solution in mind, but I cannot find discussion of this anywhere. I don't even know where to begin to fix this.
Trying to avoid symlinks and shims in the old location (IF that would even work!), because my understanding is the intention here is Intel goes to
/usr
, and ARM to/opt
(PS: where can I learn more about this standard?), so this would be against that.Cheers!
Beta Was this translation helpful? Give feedback.
All reactions