summaryrefslogtreecommitdiffhomepage
path: root/auto/lib/openssl
diff options
context:
space:
mode:
authorPiotr Sikora <piotr@aviatrix.com>2024-02-26 20:00:43 +0000
committerPiotr Sikora <piotr@aviatrix.com>2024-02-26 20:00:43 +0000
commit2deded362ee052564e7359d53c81973c16b18e72 (patch)
treefa183de106df991e189659fefc04ff872e0e4014 /auto/lib/openssl
parent6b1bb998c96278a56d767bc23520c385ab9f3038 (diff)
downloadnginx-2deded362ee052564e7359d53c81973c16b18e72.tar.gz
nginx-2deded362ee052564e7359d53c81973c16b18e72.tar.bz2
Configure: added support for Homebrew on Apple Silicon.
Signed-off-by: Piotr Sikora <piotr@aviatrix.com>
Diffstat (limited to 'auto/lib/openssl')
-rw-r--r--auto/lib/openssl/conf18
1 files changed, 18 insertions, 0 deletions
diff --git a/auto/lib/openssl/conf b/auto/lib/openssl/conf
index eda1c0f4a..fdf430dff 100644
--- a/auto/lib/openssl/conf
+++ b/auto/lib/openssl/conf
@@ -122,6 +122,24 @@ else
. auto/feature
fi
+ if [ $ngx_found = no ]; then
+
+ # Homebrew on Apple Silicon
+
+ ngx_feature="OpenSSL library in /opt/homebrew/"
+ ngx_feature_path="/opt/homebrew/include"
+
+ if [ $NGX_RPATH = YES ]; then
+ ngx_feature_libs="-R/opt/homebrew/lib -L/opt/homebrew/lib -lssl -lcrypto"
+ else
+ ngx_feature_libs="-L/opt/homebrew/lib -lssl -lcrypto"
+ fi
+
+ ngx_feature_libs="$ngx_feature_libs $NGX_LIBDL $NGX_LIBPTHREAD"
+
+ . auto/feature
+ fi
+
if [ $ngx_found = yes ]; then
have=NGX_SSL . auto/have
CORE_INCS="$CORE_INCS $ngx_feature_path"