diff options
| author | Mike McQuaid | 2017-09-16 12:41:08 +0100 |
|---|---|---|
| committer | Mike McQuaid | 2017-09-16 12:41:08 +0100 |
| commit | ffdda0eb9f4a2e56366e8c665d147d9be637f6f4 (patch) | |
| tree | 181e817e0621ee5f17ce7f274971fb8f6d45494c /Library/Homebrew/extend/os/mac/development_tools.rb | |
| parent | c0063bb827ffa9cd537a0ca107aa05ca1323393c (diff) | |
| download | brew-ffdda0eb9f4a2e56366e8c665d147d9be637f6f4.tar.bz2 | |
Tweaks for older Mac OS X versions.
- `brew update` should try to install `curl` before `git` on older
versions of Mac OS X where it is needed for accessing modern SSL
certificates.
- We don't need an HTTP mirror for `git` because `curl` will already be
installed before it is downloaded.
- Don't recommend GCC on Mac OS X versions where it can't be built with
the default system compiler.
- Start using the Homebrew `curl` on Mac OS X versions where it is
needed as soon as it is installed.
Diffstat (limited to 'Library/Homebrew/extend/os/mac/development_tools.rb')
| -rw-r--r-- | Library/Homebrew/extend/os/mac/development_tools.rb | 15 |
1 files changed, 10 insertions, 5 deletions
diff --git a/Library/Homebrew/extend/os/mac/development_tools.rb b/Library/Homebrew/extend/os/mac/development_tools.rb index caa85ffca..66b3bf9d2 100644 --- a/Library/Homebrew/extend/os/mac/development_tools.rb +++ b/Library/Homebrew/extend/os/mac/development_tools.rb @@ -43,11 +43,16 @@ class DevelopmentTools end def custom_installation_instructions - if MacOS.version > :tiger + if MacOS.version > :leopard <<-EOS.undent Install GNU's GCC brew install gcc EOS + elsif MacOS.version > :tiger + <<-EOS.undent + Install GNU's GCC + brew install gcc@4.6 + EOS else # Tiger doesn't ship with apple-gcc42, and this is required to build # some software that doesn't build properly with FSF GCC. @@ -55,7 +60,7 @@ class DevelopmentTools Install Apple's GCC brew install apple-gcc42 or GNU's GCC - brew install gcc + brew install gcc@4.6 EOS end end @@ -77,10 +82,10 @@ class DevelopmentTools end end - def curl_handles_most_https_homepages? - # The system Curl is too old for some modern HTTPS homepages on + def curl_handles_most_https_certificates? + # The system Curl is too old for some modern HTTPS certificates on # older macOS versions. - MacOS.version >= :el_capitan + !ENV["HOMEBREW_SYSTEM_CURL_TOO_OLD"].nil? end def subversion_handles_most_https_certificates? |
