Build problem on CentOS 6 - missing library settings
PtDragon opened this issue · 1 comments
PtDragon commented
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
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
.