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