summaryrefslogtreecommitdiffstats
path: root/extras/hs-test/script/build_curl.sh
diff options
context:
space:
mode:
authorFilip Tehlar <ftehlar@cisco.com>2023-06-15 10:06:57 +0200
committerFlorin Coras <florin.coras@gmail.com>2023-06-27 15:58:47 +0000
commit31eaea9eef0594117e83733aa01f8bbda940e4da (patch)
tree40a0ff08e018c379dd92823aa60c2a64ce1b9a4a /extras/hs-test/script/build_curl.sh
parentfe965a3a17fd543cb5a7caf37b25729c1683865b (diff)
hs-test: add nginx+quic test
Type: test Change-Id: I15e4f2fb84cb4f34b6fea95978db000854a63e78 Signed-off-by: Filip Tehlar <ftehlar@cisco.com>
Diffstat (limited to 'extras/hs-test/script/build_curl.sh')
-rwxr-xr-xextras/hs-test/script/build_curl.sh36
1 files changed, 36 insertions, 0 deletions
diff --git a/extras/hs-test/script/build_curl.sh b/extras/hs-test/script/build_curl.sh
new file mode 100755
index 00000000000..ae675c270fe
--- /dev/null
+++ b/extras/hs-test/script/build_curl.sh
@@ -0,0 +1,36 @@
+#!/bin/bash
+
+dir1=/tmp/dir1
+dir2=/tmp/dir2
+dir3=/tmp/dir3
+
+git clone --depth 1 -b openssl-3.0.9+quic https://github.com/quictls/openssl
+cd openssl
+echo "install path ${dir1}"
+./config enable-tls1_3 --prefix=${dir1}
+make
+make install
+
+cd ..
+git clone -b v0.12.0 https://github.com/ngtcp2/nghttp3
+cd nghttp3
+autoreconf -fi
+./configure --prefix=${dir2} --enable-lib-only
+make
+make install
+
+cd ..
+git clone -b v0.16.0 https://github.com/ngtcp2/ngtcp2
+cd ngtcp2
+autoreconf -fi
+./configure PKG_CONFIG_PATH=${dir1}/lib64/pkgconfig:${dir2}/lib/pkgconfig LDFLAGS="-Wl,-rpath,${dir1}/lib64" --prefix=${dir3} --enable-lib-only
+make
+make install
+
+cd ..
+git clone https://github.com/curl/curl
+cd curl
+autoreconf -fi
+LDFLAGS="-Wl,-rpath,${dir1}/lib64" ./configure --with-openssl=${dir1} --with-nghttp3=${dir2} --with-ngtcp2=${dir3}
+make
+make install