]> git.lizzy.rs Git - rust.git/blob - src/ci/docker/host-x86_64/dist-x86_64-linux/build-openssl.sh
Rollup merge of #73292 - poliorcetics:fix-link-in-partialeq, r=Dylan-DPC
[rust.git] / src / ci / docker / host-x86_64 / dist-x86_64-linux / build-openssl.sh
1 #!/usr/bin/env bash
2
3 set -ex
4 source shared.sh
5
6 VERSION=1.0.2k
7
8 # This needs to be downloaded directly from S3, it can't go through the CDN.
9 # That's because the CDN is backed by CloudFront, which requires SNI and TLSv1
10 # (without paying an absurd amount of money).
11 URL=https://rust-lang-ci-mirrors.s3-us-west-1.amazonaws.com/rustc/openssl-$VERSION.tar.gz
12
13 curl $URL | tar xzf -
14
15 cd openssl-$VERSION
16 hide_output ./config --prefix=/rustroot shared -fPIC
17 hide_output make -j10
18 hide_output make install
19 cd ..
20 rm -rf openssl-$VERSION
21
22 # Make the system cert collection available to the new install.
23 ln -nsf /etc/pki/tls/cert.pem /rustroot/ssl/