rbenv / ruby-build

A tool to download, compile, and install Ruby on Unix-like systems.
https://rbenv.org/man/ruby-build.1
MIT License
3.89k stars 785 forks source link

Fix linking to vendored OpenSSL on 64-bit systems #2452

Closed mislav closed 1 month ago

mislav commented 1 month ago

On 64-bit systems, the build system for OpenSSL tends to produce a "lib64" directory instead of a "lib" directory due to its "multilib" feature being enabled by default. However, the Ruby "openssl" extension assumes that the directory is always named "lib", or explicitly passed via --with-openssl-lib.

This disables multilib support in OpenSSL by passing --libdir=lib to OpenSSL configure step.

Reported in https://github.com/rbenv/ruby-build/discussions/2376