Skip to content

Commit 0f0b68f

Browse files
nnethercoteptitSeb
authored andcommittedSep 25, 2023
docs/HYPER.md: document a workaround for a link error
Closes curl#11653
1 parent adc159c commit 0f0b68f

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed
 

‎docs/HYPER.md

+3-1
Original file line numberDiff line numberDiff line change
@@ -29,12 +29,14 @@ Then build hyper and enable its C API like this:
2929
% cd hyper
3030
% RUSTFLAGS="--cfg hyper_unstable_ffi" cargo +nightly rustc --features client,http1,http2,ffi -Z unstable-options --crate-type cdylib
3131

32+
Also, `--release` can be added for a release (optimized) build.
33+
3234
Build curl to use hyper's C API:
3335

3436
% git clone https://github.com/curl/curl
3537
% cd curl
3638
% autoreconf -fi
37-
% ./configure --with-hyper=<hyper dir>
39+
% ./configure LDFLAGS="-Wl,-rpath,<hyper-dir>/target/debug -Wl,-rpath,<hyper-dir>/target/release" --with-openssl --with-hyper=<hyper-dir>
3840
% make
3941

4042
# using Hyper internally

0 commit comments

Comments
 (0)