Skip to content
This repository was archived by the owner on Sep 30, 2025. It is now read-only.

Commit 4f36b9b

Browse files
committed
portable-ruby: ship libcrypt.a
1 parent d3940e5 commit 4f36b9b

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

Formula/portable-ruby.rb

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -140,6 +140,9 @@ def install
140140
# C++ compiler might have been disabled because we break it with [email protected] builds
141141
s.sub!(/(CONFIG\["CXX"\] = )"false"/, '\\1"c++"') if Hardware::CPU.intel?
142142
end
143+
144+
# Ship libcrypt.a so that building native gems doesn't need system libcrypt installed.
145+
cp libxcrypt.lib/"libcrypt.a", lib/"libcrypt.a"
143146
end
144147

145148
libexec.mkpath

0 commit comments

Comments
 (0)