]> git.ipfire.org Git - thirdparty/curl.git/commitdiff
docs/HYPER.md: document a workaround for a link error
authorNicholas Nethercote <n.nethercote@gmail.com>
Fri, 11 Aug 2023 06:47:21 +0000 (16:47 +1000)
committerDaniel Stenberg <daniel@haxx.se>
Fri, 11 Aug 2023 18:05:17 +0000 (20:05 +0200)
Closes #11653

docs/HYPER.md

index 30560c168653d0a293f4fe1db2d6e931e322b108..62d0f67e2b000e4cd9995e13db55b1957ea1c476 100644 (file)
@@ -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=<hyper dir>
+     % ./configure LDFLAGS="-Wl,-rpath,<hyper-dir>/target/debug -Wl,-rpath,<hyper-dir>/target/release" --with-openssl --with-hyper=<hyper-dir>
      % make
 
 # using Hyper internally