]>
Commit | Line | Data |
---|---|---|
abe05a73 | 1 | #!/usr/bin/env bash |
32a655c1 SL |
2 | |
3 | set -ex | |
4 | source shared.sh | |
5 | ||
cc61c64b | 6 | VERSION=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 | 11 | URL=https://rust-lang-ci-mirrors.s3-us-west-1.amazonaws.com/rustc/openssl-$VERSION.tar.gz |
32a655c1 | 12 | |
cc61c64b | 13 | curl $URL | tar xzf - |
32a655c1 SL |
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/ |