rapiz1 / rathole

A lightweight and high-performance reverse proxy for NAT traversal, written in Rust. An alternative to frp and ngrok.
Apache License 2.0
8.82k stars 441 forks source link

openssl static build #296

Open nephaste opened 8 months ago

nephaste commented 8 months ago

hi thanks for Rathole

i would like to compile openssl statically , to bring it on Qnap NAS (openssl 3.1.3 is in another location prefix)

tried wtih OPENSSL_STATIC=1

OPENSSL_STATIC=1 OPENSSL_DIR=/opt/Apache83 OPENSSL_LIB_DIR=/opt/Apache83/lib cargo build --release

but failed to link to the final binary

image

i dont find the solution, do you have any clue ? and if it is possible

thanks for your help

rapiz1 commented 8 months ago

Unfortunately, I have no clue. rathole uses openssl-sys https://docs.rs/openssl/latest/openssl/ and hopefully you could find more useful information with that keyword and share it with the community