Skip to content

Commit

Permalink
nettle: fix on Apple Silicon (#57455)
Browse files Browse the repository at this point in the history
Co-authored-by: Misty De Meo <mistydemeo@gmail.com>
  • Loading branch information
BytesGuy and mistydemeo authored Jul 20, 2020
1 parent 61507ff commit a12fe9f
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion Formula/nettle.rb
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,13 @@ def install
"get_pc_thunk|(_*chkstk_darwin)"
end

args = []
args << "--build=aarch64-apple-darwin#{`uname -r`.chomp}" if Hardware::CPU.arm?

system "./configure", "--disable-dependency-tracking",
"--prefix=#{prefix}",
"--enable-shared"
"--enable-shared",
*args
system "make"
system "make", "install"
system "make", "check"
Expand Down

0 comments on commit a12fe9f

Please sign in to comment.