Module: kamailio
Branch: 5.2
Commit: ff5d8bf7e0692d50a104e0ebcb7690ba236ff343
URL:
https://github.com/kamailio/kamailio/commit/ff5d8bf7e0692d50a104e0ebcb7690b…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Committer: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2019-01-14T12:29:55+01:00
presence: Makefile - link agaist libicu on macos/darwin
- libxml2 needs it but its pkg-config doesn't list it
(cherry picked from commit d3208e1859051eb09013f855126f7f5f5ec47ab8)
---
Modified: src/modules/presence/Makefile
---
Diff:
https://github.com/kamailio/kamailio/commit/ff5d8bf7e0692d50a104e0ebcb7690b…
Patch:
https://github.com/kamailio/kamailio/commit/ff5d8bf7e0692d50a104e0ebcb7690b…
---
diff --git a/src/modules/presence/Makefile b/src/modules/presence/Makefile
index 6891a79d39..bd1bcebc75 100644
--- a/src/modules/presence/Makefile
+++ b/src/modules/presence/Makefile
@@ -7,6 +7,12 @@ NAME=presence.so
ifeq ($(CROSS_COMPILE),)
XML2CFG=$(shell which xml2-config)
+ifeq ($(OS), darwin)
+ICU_BUILDER = $(shell \
+ if pkg-config --exists icu-uc; then \
+ echo 'pkg-config icu-uc'; \
+ fi)
+endif
endif
ifneq ($(XML2CFG),)
@@ -18,6 +24,11 @@ else
LIBS+=-L$(LOCALBASE)/lib -lxml2
endif
+ifneq ($(ICU_BUILDER),)
+ DEFS += $(shell $(ICU_BUILDER) --cflags )
+ LIBS += $(shell $(ICU_BUILDER) --libs)
+endif
+
SERLIBPATH=../../lib
SER_LIBS+=$(SERLIBPATH)/srdb1/srdb1
SER_LIBS+=$(SERLIBPATH)/srutils/srutils