What does Homebrew do that OpenSP can compile statically? #2207
Unanswered
wrobelda
asked this question in
Writing Formulae/Casks
Replies: 1 comment 3 replies
-
Hard to tell - might need more of the build log. One suggestion I have is to make sure that GNU Binutils is not in your PATH (it has its own Other than that, try take the full build log from your failing output and take the full build log of the Homebrew build ( Homebrew also strips a few compiler flags (indicated by the |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
For the context, I am working on a vcpkg port of OpenSP, which requires static compilation on macOS and Linux. See the discussion here:
microsoft/vcpkg#20347
The problem I am facing is that I cannot compile it statically on Apple Silicon. A simple:
gives:
Notice the puzzling error message: building for macOS-arm64 but attempting to link with file built for macOS-arm64
However, if I
brew edit open-sp
and add--disable-shared --enable-static
to the list of options, it will compile just fine.Can someone please point me to what does Brew do here that it manages to build it successfully?
Note that I did see the brew's own
libtools
as dependency and I did try building manually with it being exported per the instructions (export PATH="$(brew --prefix)/opt/libtool/libexec/gnubin:$PATH"
), yet it still fails.I am puzzled and would appreciate any help.
Beta Was this translation helpful? Give feedback.
All reactions