spdylay icon indicating copy to clipboard operation
spdylay copied to clipboard

Build problem on CentOS 6 - missing library settings

Open PtDragon opened this issue 10 years ago • 1 comments

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

PtDragon avatar May 11 '14 18:05 PtDragon

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.

tatsuhiro-t avatar May 12 '14 14:05 tatsuhiro-t