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? |
Answered by
michael-grunder
Jul 3, 2023
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? |
1 reply
|
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
$ makeYou can similarly enable/disable the other defined options by passing |
1 reply
Answer selected by
mike1821
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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>.