hiredis_ssl missing #1203
-
Hello, I am trying to build hiredis using USE_SSL=1 flag, but it seems no libhiredis_ssl.so is compiled during make. Am I missing something here? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 2 replies
-
That should be all you need. Can you provide more context about exactly how you're building hiredis and on which system, etc? |
Beta Was this translation helpful? Give feedback.
-
Aha! If you're using CMake to build hiredis you would do it slightly differently. CMakeLists.txt defines these options: OPTION(BUILD_SHARED_LIBS "Build shared libraries" ON)
OPTION(ENABLE_SSL "Build hiredis_ssl for SSL support" OFF)
OPTION(DISABLE_TESTS "If tests should be compiled or not" OFF)
OPTION(ENABLE_SSL_TESTS "Should we test SSL connections" OFF)
OPTION(ENABLE_EXAMPLES "Enable building hiredis examples" OFF)
OPTION(ENABLE_ASYNC_TESTS "Should we run all asynchronous API tests" OFF) So to build with SSL enabled you would so something like this: $ cmake .. -DENABLE_SSL=ON
$ make You can similarly enable/disable the other defined options by passing |
Beta Was this translation helpful? Give feedback.
Aha!
If you're using CMake to build hiredis you would do it slightly differently.
CMakeLists.txt defines these options:
So to build with SSL enabled you would so something like this:
You can similarly enable/disable the other defined options by passing
-D<option_name>=<ON/OFF>
.