Skip to content

Commit

Permalink
portable-ruby: ship libcrypt.a
Browse files Browse the repository at this point in the history
  • Loading branch information
Bo98 committed Jun 13, 2024
1 parent d3940e5 commit 4f36b9b
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions Formula/portable-ruby.rb
Original file line number Diff line number Diff line change
Expand Up @@ -140,6 +140,9 @@ def install
# C++ compiler might have been disabled because we break it with [email protected] builds
s.sub!(/(CONFIG\["CXX"\] = )"false"/, '\\1"c++"') if Hardware::CPU.intel?
end

# Ship libcrypt.a so that building native gems doesn't need system libcrypt installed.
cp libxcrypt.lib/"libcrypt.a", lib/"libcrypt.a"
end

libexec.mkpath
Expand Down

0 comments on commit 4f36b9b

Please sign in to comment.