From f6c169d0b46a8d596a57d7247c78cef1eadaf150 Mon Sep 17 00:00:00 2001 From: Gordon Steemson Date: Tue, 26 Mar 2024 23:15:31 -0700 Subject: [PATCH 1/2] Trivial edit to add the --universal option. Appears to work seamlessly. --- Library/Formula/zlib.rb | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Library/Formula/zlib.rb b/Library/Formula/zlib.rb index d3b753adab..555b389503 100644 --- a/Library/Formula/zlib.rb +++ b/Library/Formula/zlib.rb @@ -9,6 +9,8 @@ class Zlib < Formula sha256 "0ec484b96d45d53be8501f85f4b81b2ac2d70d84fd5d1602ece4668d570b05af" => :tiger_altivec end + option :universal + keg_only :provided_by_osx # http://zlib.net/zlib_how.html @@ -19,6 +21,8 @@ class Zlib < Formula end def install + ENV.universal_binary if build.universal? + # The test in configure to see if shared library support is available # is done so by invoking gcc -w and then falls back to building just a # static library. From 7b08626d0649923fb6988fbc80dcf3567c69e014 Mon Sep 17 00:00:00 2001 From: Gordon Steemson Date: Sat, 20 Apr 2024 20:20:03 -0700 Subject: [PATCH 2/2] zlib: Trivial edit to add the --universal option. Appears to work seamlessly.