先编译zlib

cmake . -DCMAKE_INSTALL_PREFIX=/depends

make

make install

 

然后编译openssl

./config zlib no-rc5 no-shared --prefix=/depends --with-zlib-include=/depends/include/ --with-zlib-lib=/depends/lib

make

make install

相关文章: