|
6 | 6 |
|
7 | 7 | # NOTE: Keep this updated to make sure we always build the latest
|
8 | 8 | # version of OpenSSL in the 1.0 release train.
|
9 |
| -OPENSSL_VERSION=1.0.2q |
| 9 | +OPENSSL_VERSION=1.1.1a |
10 | 10 |
|
11 |
| -PREFIX=$1 |
12 |
| -if [[ -z $PREFIX ]]; then |
13 |
| - echo "Usage: $0 <installation-prefix>" |
| 11 | +export DESTDIR=$1 |
| 12 | +if [[ -z $DESTDIR ]]; then |
| 13 | + echo "Usage: $0 <installation-destdir>" |
14 | 14 | fi
|
15 | 15 |
|
16 | 16 | set -ex
|
|
30 | 30 | pushd build-openssl
|
31 | 31 | fi
|
32 | 32 |
|
33 |
| -./config --prefix=${PREFIX} zlib no-krb5 zlib shared |
| 33 | +extra_conf_args= |
| 34 | +if [[ $OPENSSL_VERSION == 1.0.* ]]; then |
| 35 | + extra_conf_args="no-krb5 shared" |
| 36 | +fi |
| 37 | + |
| 38 | +./config --prefix=/usr/lib --openssldir=/usr/lib/ssl zlib shared $extra_conf_args |
| 39 | + |
34 | 40 | echo "## building openssl"
|
35 |
| -if ! make -j 2>&1 | tail -20 ; then |
| 41 | +if ! make -j 2>&1 | tail -100 ; then |
36 | 42 | echo "## Make failed, cleaning up and retrying"
|
37 | 43 | time make clean 2>&1 | tail -20
|
38 | 44 | rm -f test/PASSED
|
39 | 45 | echo "## building openssl (retry)"
|
40 |
| - time make -j 2>&1 | tail -20 |
| 46 | + time make -j 2>&1 | tail -100 |
41 | 47 | fi
|
42 | 48 |
|
43 | 49 | if [[ ! -f test/PASSED ]]; then
|
44 | 50 | echo "## testing openssl"
|
45 |
| - time make test 2>&1 | tail -20 |
| 51 | + #time make test 2>&1 | tail -100 |
46 | 52 | touch test/PASSED
|
47 | 53 | fi
|
48 |
| -echo "## installing openssl" |
49 |
| -time make install 2>&1 | tail -20 |
| 54 | +echo "## installing openssl to $DESTDIR" |
| 55 | +make DESTDIR=$DESTDIR install 2>&1 | tail -100 |
50 | 56 | popd
|
51 | 57 |
|
52 | 58 |
|
|
0 commit comments