Skip to content

Commit

Permalink
Merge branch 'zlib-block-gcc-4.0' into KarenInternal-DONOTUSE
Browse files Browse the repository at this point in the history
* zlib-block-gcc-4.0:
  zlib: Require building with GCC 4.2 or higher. Fixes mistydemeo#594.
  • Loading branch information
akemin-dayo committed Oct 20, 2021
2 parents 3940abd + 59853f3 commit afb219e
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions Library/Formula/zlib.rb
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,10 @@ class Zlib < Formula
sha256 "1c3d8a42f15b8f8f5427e5038c76538178b2b57759c57101fb07cbbe92d0ba21" => :yosemite
end

fails_with :gcc_4_0 do
cause "Building zlib with GCC 4.0 results in a static library instead of a shared library, which can cause formulae that depend on zlib to fail to build. Please use a newer version of GCC instead, such as GCC 4.2 (brew install apple-gcc42)."
end

keg_only :provided_by_osx

# http://zlib.net/zlib_how.html
Expand Down

0 comments on commit afb219e

Please sign in to comment.