Debian Codegraph @

crt/s2n/codebuild/bin/install_libressl.sh

raw symbols SCIP
1 #!/bin/bash
2 # Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
3 #
4 # Licensed under the Apache License, Version 2.0 (the "License").
5 # You may not use this file except in compliance with the License.
6 # A copy of the License is located at
7 #
8 # http://aws.amazon.com/apache2.0
9 #
10 # or in the "license" file accompanying this file. This file is distributed
11 # on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
12 # express or implied. See the License for the specific language governing
13 # permissions and limitations under the License.
14 #
15
16 set -e
17
18 usage() {
19 echo "install_libressl.sh build_dir install_dir"
20 exit 1
21 }
22
23 if [ "$#" -ne "2" ]; then
24 usage
25 fi
26
27 BUILD_DIR=$1
28 INSTALL_DIR=$2
29 source codebuild/bin/jobs.sh
30
31 cd "$BUILD_DIR"
32 # Originally from https://ftp.openbsd.org/pub/OpenBSD/LibreSSL/libressl-3.4.3.tar.gz
33 curl https://s3-us-west-2.amazonaws.com/s2n-public-test-dependencies/2022-12-01_libressl-3.6.1.tar.gz > libressl-3.6.1.tar.gz
34 tar -xzvf libressl-3.6.1.tar.gz
35 cd libressl-3.6.1
36 ./configure --prefix="$INSTALL_DIR"
37 make -j $JOBS CFLAGS=-fPIC install