]>
Commit | Line | Data |
---|---|---|
abe05a73 | 1 | #!/usr/bin/env bash |
32a655c1 SL |
2 | # Copyright 2017 The Rust Project Developers. See the COPYRIGHT |
3 | # file at the top-level directory of this distribution and at | |
4 | # http://rust-lang.org/COPYRIGHT. | |
5 | # | |
6 | # Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or | |
7 | # http://www.apache.org/licenses/LICENSE-2.0> or the MIT license | |
8 | # <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your | |
9 | # option. This file may not be copied, modified, or distributed | |
10 | # except according to those terms. | |
11 | ||
12 | set -ex | |
13 | source shared.sh | |
14 | ||
15 | VERSION=7.51.0 | |
16 | ||
17 | curl http://cool.haxx.se/download/curl-$VERSION.tar.bz2 | tar xjf - | |
18 | ||
19 | mkdir curl-build | |
20 | cd curl-build | |
21 | hide_output ../curl-$VERSION/configure \ | |
22 | --prefix=/rustroot \ | |
23 | --with-ssl=/rustroot \ | |
24 | --disable-sspi \ | |
25 | --disable-gopher \ | |
26 | --disable-smtp \ | |
27 | --disable-smb \ | |
28 | --disable-imap \ | |
29 | --disable-pop3 \ | |
30 | --disable-tftp \ | |
31 | --disable-telnet \ | |
32 | --disable-manual \ | |
33 | --disable-dict \ | |
34 | --disable-rtsp \ | |
35 | --disable-ldaps \ | |
36 | --disable-ldap | |
37 | hide_output make -j10 | |
38 | hide_output make install | |
39 | ||
40 | cd .. | |
41 | rm -rf curl-build | |
42 | rm -rf curl-$VERSION | |
43 | yum erase -y curl |