diff --git a/src/Makefile b/src/Makefile index 587a265fd..887e5fce6 100644 --- a/src/Makefile +++ b/src/Makefile @@ -359,6 +359,11 @@ else FINAL_CFLAGS+= -I../deps/hiredis FINAL_CXXFLAGS+= -I../deps/hiredis FINAL_LIBS+=../deps/hiredis/libhiredis.a +ifeq ($(BUILD_TLS),yes) + FINAL_LIBS += ../deps/hiredis/libhiredis_ssl.a +endif +endif + ifeq ($(BUILD_TLS),yes) FINAL_CFLAGS+=-DUSE_OPENSSL $(OPENSSL_CFLAGS) FINAL_CXXFLAGS+=-DUSE_OPENSSL $(OPENSSL_CXXFLAGS) @@ -375,8 +380,7 @@ ifeq ($(LIBCRYPTO_PKGCONFIG),0) else LIBCRYPTO_LIBS=-lcrypto endif - FINAL_LIBS += ../deps/hiredis/libhiredis_ssl.a $(LIBSSL_LIBS) $(LIBCRYPTO_LIBS) -endif + FINAL_LIBS += $(LIBSSL_LIBS) $(LIBCRYPTO_LIBS) endif ifndef V