summaryrefslogtreecommitdiffstats
path: root/net/kamailio/patches/140-redis_use_pkg-config.patch
blob: cbcaca1d3528181bbca93c6b3ba2a8247210cb0f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
--- a/src/modules/cnxcc/Makefile
+++ b/src/modules/cnxcc/Makefile
@@ -8,12 +8,10 @@ include ../../Makefile.defs
 auto_gen=
 NAME=cnxcc.so
 
-ifeq ($(CROSS_COMPILE),)
 HIREDIS_BUILDER = $(shell \
 	if pkg-config --exists hiredis; then \
 		echo 'pkg-config hiredis'; \
 	fi)
-endif
 
 ifeq ($(HIREDIS_BUILDER),)
 	HIREDISDEFS=-I$(LOCALBASE)/include
--- a/src/modules/db_redis/Makefile
+++ b/src/modules/db_redis/Makefile
@@ -5,7 +5,6 @@ include ../../Makefile.defs
 auto_gen=
 NAME=db_redis.so
 
-ifeq ($(CROSS_COMPILE),)
 HIREDIS_BUILDER = $(shell \
 	if pkg-config --exists hiredis; then \
 		echo 'pkg-config hiredis'; \
@@ -16,8 +15,6 @@ HIREDIS_CLUSTER_BUILDER = $(shell \
 		echo 'pkg-config hiredis_cluster'; \
 	fi)
 
-endif
-
 ifeq ($(HIREDIS_BUILDER),)
 	HIREDISDEFS=-I$(LOCALBASE)/include -I$(LOCALBASE)/include/hiredis -I/usr/include/hiredis
 	HIREDISLIBS=-L$(LOCALBASE)/lib -lhiredis
--- a/src/modules/ndb_redis/Makefile
+++ b/src/modules/ndb_redis/Makefile
@@ -5,12 +5,10 @@ include ../../Makefile.defs
 auto_gen=
 NAME=ndb_redis.so
 
-ifeq ($(CROSS_COMPILE),)
 HIREDIS_BUILDER = $(shell \
 	if pkg-config --exists hiredis; then \
 		echo 'pkg-config hiredis'; \
 	fi)
-endif
 
 ifeq ($(HIREDIS_BUILDER),)
 	HIREDISDEFS=-I$(LOCALBASE)/include -I$(LOCALBASE)/include/hiredis  -I/usr/include/hiredis
--- a/src/modules/topos_redis/Makefile
+++ b/src/modules/topos_redis/Makefile
@@ -5,12 +5,10 @@ include ../../Makefile.defs
 auto_gen=
 NAME=topos_redis.so
 
-ifeq ($(CROSS_COMPILE),)
 HIREDIS_BUILDER = $(shell \
 	if pkg-config --exists hiredis; then \
 		echo 'pkg-config hiredis'; \
 	fi)
-endif
 
 ifeq ($(HIREDIS_BUILDER),)
 	HIREDISDEFS=-I$(LOCALBASE)/include -I$(LOCALBASE)/include/hiredis  -I/usr/include/hiredis