Module: kamailio
Branch: 5.2
Commit: df1482789cdbcfb7d32e08ba908e185f53cc48ac
URL:
https://github.com/kamailio/kamailio/commit/df1482789cdbcfb7d32e08ba908e185…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Committer: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2019-01-14T12:30:06+01:00
presence_xml: Makefile - link agaist libicu on macos/darwin
- libxml2 needs it but its pkg-config doesn't list it
(cherry picked from commit 869f57aac4496e10480094c36373f485aef11a80)
---
Modified: src/modules/presence_xml/Makefile
---
Diff:
https://github.com/kamailio/kamailio/commit/df1482789cdbcfb7d32e08ba908e185…
Patch:
https://github.com/kamailio/kamailio/commit/df1482789cdbcfb7d32e08ba908e185…
---
diff --git a/src/modules/presence_xml/Makefile b/src/modules/presence_xml/Makefile
index 08711cdfa9..f6a1dd4d63 100644
--- a/src/modules/presence_xml/Makefile
+++ b/src/modules/presence_xml/Makefile
@@ -8,6 +8,12 @@ LIBS=
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),)
@@ -19,6 +25,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
include ../../Makefile.modules