From: Nicholas Nethercote Date: Fri, 11 Aug 2023 06:47:21 +0000 (+1000) Subject: docs/HYPER.md: document a workaround for a link error X-Git-Tag: curl-8_3_0~171 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=686951f7be484b30a1d7e4f92346b4227ce5bd38;p=thirdparty%2Fcurl.git docs/HYPER.md: document a workaround for a link error Closes #11653 --- diff --git a/docs/HYPER.md b/docs/HYPER.md index 30560c1686..62d0f67e2b 100644 --- a/docs/HYPER.md +++ b/docs/HYPER.md @@ -29,12 +29,14 @@ Then build hyper and enable its C API like this: % cd hyper % RUSTFLAGS="--cfg hyper_unstable_ffi" cargo +nightly rustc --features client,http1,http2,ffi -Z unstable-options --crate-type cdylib +Also, `--release` can be added for a release (optimized) build. + Build curl to use hyper's C API: % git clone https://github.com/curl/curl % cd curl % autoreconf -fi - % ./configure --with-hyper= + % ./configure LDFLAGS="-Wl,-rpath,/target/debug -Wl,-rpath,/target/release" --with-openssl --with-hyper= % make # using Hyper internally