Skip to content

Commit

Permalink
Add patch to enable building on Apple Silicon (#30)
Browse files Browse the repository at this point in the history
  • Loading branch information
richard-vd authored Mar 3, 2022
1 parent 9aebee6 commit 8d48bcf
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions musl-cross.rb
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,11 @@ class MuslCross < Formula
sha256 "a4e3fc7c37dac40819d23bd022122c17c783f58dda4345065fec6dca6abce36c"
end

patch do # Apple Silicon build fix for gcc-6.5.0 .. gcc-10.3.0
url "https://github.com/richfelker/musl-cross-make/commit/8d34906.patch?full_index=1"
sha256 "01b2e0e11aeb33db5d8988d42a517828911601227238d8e7d5d7db8364486c26"
end

def install
targets = []
targets.push "x86_64-linux-musl" if build.with? "x86_64"
Expand Down

0 comments on commit 8d48bcf

Please sign in to comment.