]> git.proxmox.com Git - rustc.git/blame - src/ci/docker/dist-x86_64-linux/build-openssl.sh
New upstream version 1.45.0+dfsg1
[rustc.git] / src / ci / docker / dist-x86_64-linux / build-openssl.sh
CommitLineData
abe05a73 1#!/usr/bin/env bash
32a655c1
SL
2
3set -ex
4source shared.sh
5
cc61c64b 6VERSION=1.0.2k
60c5eb7d
XL
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).
416331ca 11URL=https://rust-lang-ci-mirrors.s3-us-west-1.amazonaws.com/rustc/openssl-$VERSION.tar.gz
32a655c1 12
cc61c64b 13curl $URL | tar xzf -
32a655c1
SL
14
15cd openssl-$VERSION
16hide_output ./config --prefix=/rustroot shared -fPIC
17hide_output make -j10
18hide_output make install
19cd ..
20rm -rf openssl-$VERSION
21
22# Make the system cert collection available to the new install.
23ln -nsf /etc/pki/tls/cert.pem /rustroot/ssl/