From 884209f51224fd08e075f358e1c0403bee59ffbb Mon Sep 17 00:00:00 2001 From: Michal Papis Date: Sat, 26 Nov 2011 21:28:39 +0100 Subject: [PATCH] openssl: upgrade process --- openssl/shell/functions | 20 ++++++++++++++------ 1 file changed, 14 insertions(+), 6 deletions(-) diff --git a/openssl/shell/functions b/openssl/shell/functions index 8a357e1..8d1c5ea 100644 --- a/openssl/shell/functions +++ b/openssl/shell/functions @@ -1,11 +1,19 @@ #!/bin/sh -openssl_configure() +openssl_preconfigure() { - if (( ${static_flag:-0} == 1 )) - then - ./config --prefix="${install_path}" ${configure_flags[@]} > configure.log 2>&1 - else - ./config --prefix="${install_path}" ${configure_flags[@]} shared > configure.log 2>&1 + typeset -gx configure_command + + if os is darwin && os arch type is x86_64 + then configure_command="./Configure darwin64-x86_64-cc" + else configure_command="./config" fi + + __sm.package.configure.flag "--prefix" "${install_path}" + + if (( ${static_flag:-0} == 0 )) + then configure_flags+=( shared ) + fi + + configure_command+="${configure_flags[@]}" }