Skip to content

Commit

Permalink
boost-build: Fix build on Apple silicon
Browse files Browse the repository at this point in the history
Patch Boost's build system to build cleanly on Apple silicon. This is
a port of PR Homebrew#59257 that fixes the main boost package.

Signed-off-by: Andreas Sandberg <andreas@sandberg.uk>
  • Loading branch information
andysan committed Jan 4, 2021
1 parent 5be6b5f commit a370c13
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions Formula/boost-build.rb
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,13 @@ class BoostBuild < Formula

conflicts_with "b2-tools", because: "both install `b2` binaries"

# Fix build system issues on Apple silicon. This change has aleady
# been merged upstream, remove this patch once it lands in a release.
patch do
url "https://github.com/boostorg/build/commit/456be0b7ecca065fbccf380c2f51e0985e608ba0.patch?full_index=1"
sha256 "e7a78145452fc145ea5d6e5f61e72df7dcab3a6eebb2cade6b4cfae815687f3a"
end

def install
system "./bootstrap.sh"
system "./b2", "--prefix=#{prefix}", "install"
Expand Down

0 comments on commit a370c13

Please sign in to comment.