Skip to content

Commit 4706fab

Browse files
committed
Add Rust dependency and rebuild orjson with headerpad for bottle relocation
1 parent b0ae8b2 commit 4706fab

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

packaging/homebrew/mfc.rb

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ class Mfc < Formula
1313

1414
depends_on "cmake" => :build
1515
depends_on "gcc" => :build
16+
depends_on "rust" => :build
1617

1718
depends_on "boost"
1819
depends_on "fftw"
@@ -37,6 +38,10 @@ def install
3738
# Keep toolchain in buildpath for now - mfc.sh needs it there
3839
system venv/"bin/pip", "install", "-e", buildpath/"toolchain"
3940

41+
# Rebuild orjson from source with headerpad to enable bottle relocation
42+
ENV["RUSTFLAGS"] = "-C link-arg=-Wl,-headerpad_max_install_names"
43+
system venv/"bin/pip", "install", "--no-binary", ":all:", "--force-reinstall", "--no-deps", "orjson"
44+
4045
# Create symlink so mfc.sh uses our pre-installed venv
4146
mkdir_p "build"
4247
ln_sf venv, "build/venv"

0 commit comments

Comments
 (0)