Skip to content

Commit bcea707

Browse files
committed
Update HTTP3 development build script
1 parent da2ff11 commit bcea707

File tree

1 file changed

+12
-7
lines changed

1 file changed

+12
-7
lines changed

development_build_with_http3.sh

+12-7
Original file line numberDiff line numberDiff line change
@@ -7,49 +7,54 @@ echo "WARNING !!!"
77
echo
88
echo "Use only for development and testing!"
99
echo "It is highly highly not recommended, to use in production!"
10-
echo "This script was based on: https://github.com/curl/curl/blob/curl-7_82_0/docs/HTTP3.md"
10+
echo "This script was based on: https://github.com/curl/curl/blob/curl-8_12_1/docs/HTTP3.md"
11+
echo
12+
echo "Extra packages suggested to be installed: autoconf libtool"
1113
echo
1214

1315
sleep 5
1416

17+
set -x
18+
1519
INSTALL_DIR=$PWD/custom_curl/install
1620
mkdir -p $INSTALL_DIR
1721
cd custom_curl
1822

1923
###
2024

21-
git clone --depth 1 -b openssl-3.0.0+quic https://github.com/quictls/openssl
25+
git clone --depth 1 -b openssl-3.1.4+quic https://github.com/quictls/openssl
2226
cd openssl
2327
./config enable-tls1_3 --prefix=$INSTALL_DIR
2428
make -j build_libs
2529
make install_dev
2630
cd ..
2731

28-
git clone --depth 1 -b v0.3.0 https://github.com/ngtcp2/nghttp3
32+
git clone --depth 1 -b v1.1.0 https://github.com/ngtcp2/nghttp3
2933
cd nghttp3
34+
git submodule update --init
3035
autoreconf -fi
3136
./configure --prefix=$INSTALL_DIR --enable-lib-only
3237
make -j
3338
make install
3439
cd ..
3540

36-
git clone --depth 1 -b v0.3.1 https://github.com/ngtcp2/ngtcp2
41+
git clone --depth 1 -b v1.2.0 https://github.com/ngtcp2/ngtcp2
3742
cd ngtcp2
3843
autoreconf -fi
3944
./configure PKG_CONFIG_PATH=$INSTALL_DIR/lib64/pkgconfig:$INSTALL_DIR/lib64/pkgconfig LDFLAGS="-Wl,-rpath,$INSTALL_DIR/lib64" --prefix=$INSTALL_DIR --enable-lib-only --with-openssl
4045
make -j
4146
make install
4247
cd ..
4348

44-
git clone --depth 1 -b v1.47.0 https://github.com/nghttp2/nghttp2
49+
git clone --depth 1 -b v1.64.0 https://github.com/nghttp2/nghttp2
4550
cd nghttp2
4651
autoreconf -fi
4752
./configure PKG_CONFIG_PATH=$INSTALL_DIR/lib64/pkgconfig:$INSTALL_DIR/lib64/pkgconfig LDFLAGS="-Wl,-rpath,$INSTALL_DIR/lib64" --prefix=$INSTALL_DIR --enable-lib-only --with-openssl
4853
make -j
4954
make install
5055
cd ..
5156

52-
git clone --depth 1 -b curl-7_82_0 https://github.com/curl/curl
57+
git clone --depth 1 -b curl-8_12_1 https://github.com/curl/curl
5358
cd curl
5459
autoreconf -fi
5560
LDFLAGS="-Wl,-rpath,$INSTALL_DIR/lib64" ./configure --with-openssl=$INSTALL_DIR --with-nghttp2=$INSTALL_DIR --with-nghttp3=$INSTALL_DIR --with-ngtcp2=$INSTALL_DIR --prefix=$INSTALL_DIR
@@ -60,5 +65,5 @@ cd ..
6065
###
6166

6267
cd ..
63-
cmake -D CUSTOM_LIBCURL_INSTALL_PATH=$INSTALL_DIR .
68+
cmake -D CUSTOM_LIBCURL_INSTALL_PATH=$INSTALL_DIR -D CMAKE_BUILD_TYPE=Debug .
6469
make -j

0 commit comments

Comments
 (0)