-
-
Notifications
You must be signed in to change notification settings - Fork 50
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
run-checker: Add script to build gost.so
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
Showing
1 changed file
with
39 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | ||
) |