Module: kamailio
Branch: master
Commit: 440e8cba9f9e8364e100a68283137da589e6f283
URL:
https://github.com/kamailio/kamailio/commit/440e8cba9f9e8364e100a68283137da…
Author: Joel Centelles <joel_centellesmartin(a)baxter.com>
Committer: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2023-06-20T10:45:31+02:00
db_redis: Fixing Makefile
Removing unprotected references to libhiredis_ssl.so
---
Modified: src/modules/db_redis/Makefile
---
Diff:
https://github.com/kamailio/kamailio/commit/440e8cba9f9e8364e100a68283137da…
Patch:
https://github.com/kamailio/kamailio/commit/440e8cba9f9e8364e100a68283137da…
---
diff --git a/src/modules/db_redis/Makefile b/src/modules/db_redis/Makefile
index e3a2abdd09c..7d427586e98 100644
--- a/src/modules/db_redis/Makefile
+++ b/src/modules/db_redis/Makefile
@@ -20,14 +20,14 @@ endif
ifeq ($(HIREDIS_BUILDER),)
HIREDISDEFS=-I$(LOCALBASE)/include -I$(LOCALBASE)/include/hiredis
-I/usr/include/hiredis
- HIREDISLIBS=-L$(LOCALBASE)/lib -lhiredis_ssl -lhiredis
+ HIREDISLIBS=-L$(LOCALBASE)/lib -lhiredis
ifneq ($(shell ls $(LOCALBASE) | grep libhiredis_ssl.so),)
HIREDISDEFS += -DWITH_SSL
HIREDISLIBS += -lhiredis_ssl
endif
else
HIREDISDEFS = $(shell $(HIREDIS_BUILDER) --cflags)
- HIREDISLIBS = $(shell $(HIREDIS_BUILDER) --libs) -lhiredis_ssl
+ HIREDISLIBS = $(shell $(HIREDIS_BUILDER) --libs)
HIREDISLIBSPATH = $(shell $(HIREDIS_BUILDER) --libs-only-L | cut -c 3-)
ifneq ($(shell ls $(HIREDISLIBSPATH) | grep libhiredis_ssl.so),)
HIREDISDEFS += -DWITH_SSL
@@ -40,7 +40,7 @@ endif
ifeq ($(HIREDISLIBS),-L -lhiredis)
HIREDISDEFS = $(shell $(HIREDIS_BUILDER) --cflags) /opt/local/include
- HIREDISLIBS = -L/opt/local/lib -lhiredis -lhiredis_ssl
+ HIREDISLIBS = -L/opt/local/lib -lhiredis
ifneq ($(shell ls /opt/local/lib | grep libhiredis_ssl.so),)
HIREDISDEFS += -DWITH_SSL
HIREDISLIBS += -lhiredis_ssl