blob: 7da0d8dc1689f782d24591a54256e3c1cadc9a46 [file] [log] [blame]
# Copyright (C) Igor Sysoev
if test -n "$OPENSSL_OPT"; then
NGX_OPENSSL_CONFIG="./Configure \"$OPENSSL_OPT\""
else
NGX_OPENSSL_CONFIG="./config"
fi
case $USE_THREADS in
NO) NGX_OPENSSL_CONFIG="$NGX_OPENSSL_CONFIG no-threads" ;;
*) NGX_OPENSSL_CONFIG="$NGX_OPENSSL_CONFIG threads" ;;
esac
case "$NGX_PLATFORM" in
*)
cat << END >> $NGX_MAKEFILE
$OPENSSL/libssl.a:
cd $OPENSSL \\
&& \$(MAKE) clean \\
&& $NGX_OPENSSL_CONFIG no-shared \\
&& \$(MAKE)
END
;;
esac