Skip to content

Commit

Permalink
Clean up build script
Browse files Browse the repository at this point in the history
  • Loading branch information
mouse07410 committed Nov 12, 2021
1 parent a413d3b commit bff621d
Showing 1 changed file with 12 additions and 12 deletions.
24 changes: 12 additions & 12 deletions gost-build-3.sh
Original file line number Diff line number Diff line change
@@ -1,25 +1,25 @@
#!/bin/bash -x

# This script assumes your standard system installation is OpenSSL-1.1.1+,
# and a separate (not on the PATH) installation - OpenSSL-3.0 (GitHub master).
#
# Input taken via environment variables:
#
# OPENSSL_DIR: where binary OpenSSL installation is
# if empty, assume $HOME/openssl-3
#
# ENGINESDIR: where this OpenSSL version places engines
# if empty, assume ${OPENSSL_DIR}/lib/engines-3
#
# THREE: sub-suffix for the output log files (default - empty/none)
#
# NOTE: You *must* set OPENSSL_DIR env var if you want to build the GOST engine
# for OpenSSL-1.1.1+.
# for OpenSSL-1.1.1+ or Macports-installed OpenSSL (3.x or 1.1.1x).
#
# You may set OPENSSL_ROOT_DIR for OpenSSL-1.1.1+. It will be reset automatically
# if the script determines that the build is for OpenSSL-3.0 by finding that
# OPENSSL_DIR is *not* set.

if [ -z ${OPENSSL_DIR} ]; then
# Assume we are building for OpenSSL-3 (current master)
LDFLAGS=""
OPENSSL_DIR="$HOME/openssl-3"
#THREE="-3-"
#else
# # Assume we're building for Macports OpenSSL-1.1.1x
# OPENSSL_ENGINES_DIR="${OPENSSL_DIR}/lib/engines-1.1"
# THREE="-"
# CMAKE_BUILD_TYPE=Release
THREE="-3-"
fi

if [ -z ${ENGINESDIR} ]; then
Expand Down

0 comments on commit bff621d

Please sign in to comment.