[sr-dev] git:master:869f57aa: presence_xml: Makefile - link agaist libicu on macos/darwin

Daniel-Constantin Mierla miconda at gmail.com
Sun Jan 13 11:36:21 CET 2019


Module: kamailio
Branch: master
Commit: 869f57aac4496e10480094c36373f485aef11a80
URL: https://github.com/kamailio/kamailio/commit/869f57aac4496e10480094c36373f485aef11a80

Author: Daniel-Constantin Mierla <miconda at gmail.com>
Committer: Daniel-Constantin Mierla <miconda at gmail.com>
Date: 2019-01-13T11:04:16+01:00

presence_xml: Makefile - link agaist libicu on macos/darwin

- libxml2 needs it but its pkg-config doesn't list it

---

Modified: src/modules/presence_xml/Makefile

---

Diff:  https://github.com/kamailio/kamailio/commit/869f57aac4496e10480094c36373f485aef11a80.diff
Patch: https://github.com/kamailio/kamailio/commit/869f57aac4496e10480094c36373f485aef11a80.patch

---

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




More information about the sr-dev mailing list