diff options
author | Mohammad Akhlaghi <mohammad@akhlaghi.org> | 2018-12-03 18:37:36 +0000 |
---|---|---|
committer | Mohammad Akhlaghi <mohammad@akhlaghi.org> | 2018-12-03 18:41:27 +0000 |
commit | 49654daa6b1ecf2126154466a9fccef4fc7ec2f5 (patch) | |
tree | b3b46acb2ad8c92024aa884dd29e485f769db26d /configure | |
parent | a2db1f07f9d2bda6bed34fb359c44d6299cbbf5e (diff) |
Checking Mac OS host for configuring OpenSSL
OpenSSL can't automatically detect the architecture of Mac OS systems, so
as it suggests on its Wiki, it needs some help for doing that. With this
commit, we are checking the build on Mac OS with the presence of `otool'
(Mac OS's linker). If it's there, we'll add the OpenSSL configuration
options suggested by OpenSSL's Wiki.
Diffstat (limited to 'configure')
-rwxr-xr-x | configure | 19 |
1 files changed, 18 insertions, 1 deletions
@@ -630,6 +630,22 @@ fi +# If we are on a Mac OS system +# ---------------------------- +# +# For the time being, we'll use the existance of `otool' to see if we are +# on a Mac OS system or not. Some tools (for example OpenSSL) need to know +# this. +if type otool > /dev/null 2>/dev/null; then + on_mac_os=yes +else + on_mac_os=no +fi + + + + + # Build Basic dependencies # ------------------------ # @@ -642,9 +658,10 @@ if which nproc > /dev/null 2>/dev/null; then numthreads=$(nproc --all); else numthreads=2; fi make -f reproduce/src/make/dependencies-basic.mk \ - static_build=$static_build \ rpath_command=$rpath_command \ + static_build=$static_build \ needs_ldl=$needs_ldl \ + on_mac_os=$on_mac_os \ #-j$numthreads |