Filip Tehlar | 31eaea9 | 2023-06-15 10:06:57 +0200 | [diff] [blame] | 1 | #!/bin/bash |
| 2 | |
| 3 | dir1=/tmp/dir1 |
| 4 | dir2=/tmp/dir2 |
| 5 | dir3=/tmp/dir3 |
| 6 | |
| 7 | git clone --depth 1 -b openssl-3.0.9+quic https://github.com/quictls/openssl |
| 8 | cd openssl |
| 9 | echo "install path ${dir1}" |
| 10 | ./config enable-tls1_3 --prefix=${dir1} |
| 11 | make |
| 12 | make install |
| 13 | |
| 14 | cd .. |
| 15 | git clone -b v0.12.0 https://github.com/ngtcp2/nghttp3 |
| 16 | cd nghttp3 |
| 17 | autoreconf -fi |
| 18 | ./configure --prefix=${dir2} --enable-lib-only |
| 19 | make |
| 20 | make install |
| 21 | |
| 22 | cd .. |
| 23 | git clone -b v0.16.0 https://github.com/ngtcp2/ngtcp2 |
| 24 | cd ngtcp2 |
| 25 | autoreconf -fi |
| 26 | ./configure PKG_CONFIG_PATH=${dir1}/lib64/pkgconfig:${dir2}/lib/pkgconfig LDFLAGS="-Wl,-rpath,${dir1}/lib64" --prefix=${dir3} --enable-lib-only |
| 27 | make |
| 28 | make install |
| 29 | |
| 30 | cd .. |
| 31 | git clone https://github.com/curl/curl |
| 32 | cd curl |
| 33 | autoreconf -fi |
| 34 | LDFLAGS="-Wl,-rpath,${dir1}/lib64" ./configure --with-openssl=${dir1} --with-nghttp3=${dir2} --with-ngtcp2=${dir3} |
| 35 | make |
| 36 | make install |