Skip to content

Commit

Permalink
run-checker: Add script to build gost.so
Browse files Browse the repository at this point in the history
It gets built against a 1.1.0 build, on purpose to check that it links
and runs correctly against any libcrypto.so.1.1.

Fixes #21

Reviewed-by: Rich Salz <rsalz@openssl.org>
(Merged from openssl/openssl#22)
  • Loading branch information
levitte committed Jul 16, 2018
1 parent 5f62625 commit 45ea218
Showing 1 changed file with 39 additions and 0 deletions.
39 changes: 39 additions & 0 deletions run-checker/build-gost.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
#! /bin/bash
#
# Run in a directory for a gost engine build.
# Two subdirectories will be created:
#
# gost-engine a checkout of https://github.com/gost-engine/engine.git
# openssl a checkout of https://github.com/openssl/openssl.git
#
# Required ubuntu packages to run this script:
#
# build-essential
# cmake
# perl
# git

if [ -d openssl ]; then
(cd openssl; git pull --rebase)
else
git clone -b OpenSSL_1_1_0-stable --depth 1 --single-branch \
https://github.com/openssl/openssl.git openssl
fi

if [ -d gost-engine ]; then
(cd gost-engine; git pull --rebase)
else
git clone https://github.com/gost-engine/engine.git gost-engine
fi

OPENSSL_PREFIX=$(pwd)/openssl/_install
(
cd openssl
./config --prefix=$OPENSSL_PREFIX \
&& make -j8 build_libs \
&& make install_dev
) && (
cd gost-engine
cmake -DOPENSSL_ROOT_DIR=$OPENSSL_PREFIX .
make
)

0 comments on commit 45ea218

Please sign in to comment.