You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

21 lines
460B

  1. DIR="$(dirname "$(readlink -e "${BASH_SOURCE:-$0}")")"
  2. case "$1" in
  3. 1.0)
  4. OPENSSL_VERSION=1.0.2j
  5. export RBENV_VERSION=2.3.8-cryptcheck
  6. ;;
  7. 1.1)
  8. OPENSSL_VERSION=1.1.1g
  9. export RBENV_VERSION=2.6.6-cryptcheck
  10. ;;
  11. *)
  12. echo "You must provide OpenSSL version to use: 1.0 or 1.1"
  13. exit -1
  14. ;;
  15. esac
  16. OPENSSL_PATH="$DIR/build/openssl-$OPENSSL_VERSION"
  17. export LIBRARY_PATH="$OPENSSL_PATH" C_INCLUDE_PATH="$OPENSSL_PATH/include"
  18. export LD_LIBRARY_PATH="$LIBRARY_PATH"