From 4f36b9b9f1deb4c97763b5092b3c209e04218da8 Mon Sep 17 00:00:00 2001 From: Bo Anderson Date: Thu, 13 Jun 2024 23:40:10 +0100 Subject: [PATCH] portable-ruby: ship libcrypt.a --- Formula/portable-ruby.rb | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Formula/portable-ruby.rb b/Formula/portable-ruby.rb index da27849..e4cd0be 100644 --- a/Formula/portable-ruby.rb +++ b/Formula/portable-ruby.rb @@ -140,6 +140,9 @@ def install # C++ compiler might have been disabled because we break it with glibc@2.13 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