What's the best way to get a c++ executable on the PATH? #4585
|
I'm working on some Homebrew formulae. When I went to do a I opened a discussion about it, and the result is basically that Homebrew's So, Homebrew expects a The obvious quick solution is to symlink it to ln -s $(brew --prefix gcc)/bin/c++-$( brew info gcc --json | jq -r '.[0].linked_keg | split(".") | first') /usr/local/bin/c++This seems safe, but would break when Homebrew moves to GCC 16, etc, so I'm thinking some kind script that dynamically looks at the I'd love to hear thoughts on alternative ways to resolve this. |
Replies: 1 comment 1 reply
|
Give a try in ask.projectbluefin.io : This is a real gap. Bluefin's base image installs A few options in order of "cleanness":
My take: option 1 is the right answer. Bluefin already ships |
Thank you for the prompt response! I've opened a PR #4586 that will add gcc-c++.
I can do № 3 if the PR ends closed non-merged, as that's more "the Bluefin way" and building inside of
ghcr.io/homebrew/brew:latestought to be sufficient for formulae development.