tatsuhiro-t / spdylay

The experimental SPDY protocol version 2, 3 and 3.1 implementation in C
http://tatsuhiro-t.github.io/spdylay/
MIT License
602 stars 102 forks source link

Build problem on CentOS 6 - missing library settings #111

Open PtDragon opened 10 years ago

PtDragon commented 10 years ago

It should be built with make LIBS="-ldl -lz" or it will stop build with errors. Please add it into instruction so people will know how to build it(i spent 3 hours searching where problem is). -ldl is for opennssl -lz is for zlib

tatsuhiro-t commented 10 years ago

The official way to specify zlib flags is use ZLIB_CFLAGS and ZLIB_LIBS. But normally, they are searched and set by pkg-config. If configure complained about missing zlib, you can specify both variables by hand. Run ./configure -h to see help If -ldl is required for openssl, usually it must be supplied in its .pc file read by pkg-config. If it is missing, then LIBS is the last resort.

All variables are described in ./configure -h.