mirror of
https://github.com/rbenv/ruby-build.git
synced 2025-12-01 00:01:18 +01:00
Handle 32-bit OS X
This commit is contained in:
parent
80373fb670
commit
881698e16b
1 changed files with 6 additions and 1 deletions
|
|
@ -533,7 +533,12 @@ build_package_replace_osx_openssl() {
|
|||
# Normally, we'd use ./config to automatically guess our platform. But
|
||||
# that doesn't work for 64-bit Darwin: it picks 32-bit by default and
|
||||
# asks you to run ./Configure by hand if you want 64-bit. So, here we are:
|
||||
OPENSSL_CONFIGURE="${OPENSSL_CONFIGURE:-perl ./Configure darwin64-x86_64-cc}"
|
||||
if [ "$(uname -m)" = "x86_64" ]; then
|
||||
local platform="darwin64-x86_64-cc"
|
||||
else
|
||||
local platform="darwin-i386-cc"
|
||||
fi
|
||||
OPENSSL_CONFIGURE="${OPENSSL_CONFIGURE:-perl ./Configure $platform}"
|
||||
|
||||
# Compile with zlib, no kerberos, and do a static build.
|
||||
package_option openssl configure --openssldir="$OPENSSLDIR" zlib no-krb5 no-shared
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue