This adds GCC's runtime lib directory to the RPATH of every build on Linux (unconditionally!). This is useful for three things: 1. It fixes versioned GCC linkage for formulae that users build from source instead of pouring from a bottle. We currently only handle bottle installs. See #13633. 2. It helps minimise the GCC dependency explosion. When a formula has a Linux-only GCC dependency, then all its dependents that link with some GCC runtime library (typically `libstdc++`) must, before this change, also adopt a GCC dependency. This is a consequence of our injecting GCC's runtime library directory into RPATH only when a formula is built with GCC (this is done through the specs file). We can avoid the need to do this by always injecting this path instead. 3. This enables us to automatically install Homebrew GCC whenever the user's GCC is too old and the formula may need it. Without this change, auto-installing GCC is not that useful because formulae that need it may not know to look for our GCC, unless the formula already happened to be built with our GCC. With this change, these formulae will always be able to find our GCC when it is installed. This is particularly useful for when we start building with a version of GCC that is much closer to the latest than we currently do. This approach comes with at least two drawbacks: 1. We will see spurious linkage warnings in CI about an undeclared dependency with linkage as soon as Homebrew GCC is installed, because formulae will link with our GCC instead of the host's. Users will also see a similar complaint if they do `brew linkage`. 2. This leans _very_ heavily on GCC delivering backward compatibility of their runtime libraries. If they do not, we could see different behaviour across different CI runs for the same formula depending on whether Homebrew GCC is installed. It's worth noting that item 3 in the "useful" list above may rely on features not yet implement in `brew`.
Homebrew
Features, usage and installation instructions are summarised on the homepage. Terminology (e.g. the difference between a Cellar, Tap, Cask and so forth) is explained here.
What Packages Are Available?
- Type
brew formulaefor a list. - Or visit formulae.brew.sh to browse packages online.
- Or use
brew search --desc <keyword>to browse packages from the command line.
More Documentation
brew help, man brew or check our documentation.
Troubleshooting
First, please run brew update and brew doctor.
Second, read the Troubleshooting Checklist.
If you don't read these it will take us far longer to help you with your problem.
Contributing
We'd love you to contribute to Homebrew. First, please read our Contribution Guide and Code of Conduct.
We explicitly welcome contributions from people who have never contributed to open-source before: we were all beginners once! We can help build on a partially working pull request with the aim of getting it merged. We are also actively seeking to diversify our contributors and especially welcome contributions from women from all backgrounds and people of colour.
A good starting point for contributing is running brew audit --strict with some of the packages you use (e.g. brew audit --strict wget if you use wget) and then read through the warnings, try to fix them until brew audit --strict shows no results and submit a pull request. If no formulae you use have warnings you can run brew audit --strict without arguments to have it run on all packages and pick one.
Alternatively, for something more substantial, check out one of the issues labeled help wanted in Homebrew/brew or Homebrew/homebrew-core.
Good luck!
Security
Please report security issues to our HackerOne.
Who We Are
Homebrew's Project Leader is Mike McQuaid.
Homebrew's Project Leadership Committee is Issy Long, Jonathan Chang, Mike McQuaid, Misty De Méo and Sean Molenaar.
Homebrew's Technical Steering Committee is Bo Anderson, FX Coudert, Michka Popoff, Mike McQuaid and Rylan Polster.
Homebrew's other current maintainers are Alexander Bayandin, Bevan Kay, Branch Vincent, Caleb Xu, Carlo Cabrera, Daniel Nachun, Dawid Dziurla, Dustin Rodrigues, Eric Knibbe, George Adams, Markus Reiter, Maxim Belkin, Miccal Matthews, Michael Cho, Nanda H Krishna, Randall, Rui Chen, Sam Ford, Shaun Jackman, Steve Peters, Thierry Moisan and Vítor Galvão.
Former maintainers with significant contributions include Claudia Pellegrino, Seeker, William Woodruff, Jan Viljanen, JCount, commitay, Dominyk Tiller, Tim Smith, Baptiste Fontaine, Xu Cheng, Martin Afanasjew, Brett Koonce, Charlie Sharpsteen, Jack Nagel, Adam Vandenberg, Andrew Janke, Alex Dunn, neutric, Tomasz Pajor, Uladzislau Shablinski, Alyssa Ross, ilovezfs, Chongyu Zhu and Homebrew's creator: Max Howell.
Community
License
Code is under the BSD 2-clause "Simplified" License. Documentation is under the Creative Commons Attribution license.
Donations
Homebrew is a non-profit project run entirely by unpaid volunteers. We need your funds to pay for software, hardware and hosting around continuous integration and future improvements to the project. Every donation will be spent on making Homebrew better for our users.
Please consider a regular donation through GitHub Sponsors, Open Collective or Patreon. Homebrew is fiscally hosted by the Open Source Collective.
Sponsors
Our macOS continuous integration infrastructure is hosted by MacStadium's Orka.
Secure password storage and syncing is provided by 1Password for Teams.
Flaky test detection and tracking is provided by BuildPulse.
https://brew.sh's DNS is resolving with DNSimple.
Homebrew is generously supported by Substack, Randy Reddig, embark-studios, CodeCrafters and many other users and organisations via GitHub Sponsors.




