[sr-dev] git:master:46084c89: rls: Makefile - link agaist libicu on macos/darwin

Daniel-Constantin Mierla miconda at gmail.com
Sat Jun 22 16:40:23 CEST 2019


Module: kamailio
Branch: master
Commit: 46084c898d0598e94c7f22ab03d321e037fd7f55
URL: https://github.com/kamailio/kamailio/commit/46084c898d0598e94c7f22ab03d321e037fd7f55

Author: Daniel-Constantin Mierla <miconda at gmail.com>
Committer: Daniel-Constantin Mierla <miconda at gmail.com>
Date: 2019-06-22T16:39:46+02:00

rls: Makefile - link agaist libicu on macos/darwin

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

---

Modified: src/modules/rls/Makefile

---

Diff:  https://github.com/kamailio/kamailio/commit/46084c898d0598e94c7f22ab03d321e037fd7f55.diff
Patch: https://github.com/kamailio/kamailio/commit/46084c898d0598e94c7f22ab03d321e037fd7f55.patch

---

diff --git a/src/modules/rls/Makefile b/src/modules/rls/Makefile
index 33ed9f4a39..b62be93d4c 100644
--- a/src/modules/rls/Makefile
+++ b/src/modules/rls/Makefile
@@ -10,6 +10,12 @@ NAME=rls.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),)
@@ -21,6 +27,11 @@ else
 	LIBS+=-L$(LOCALBASE)/lib -lxml2
 endif
 
+ifneq ($(ICU_BUILDER),)
+	DEFS += $(shell $(ICU_BUILDER) --cflags )
+	LIBS += $(shell $(ICU_BUILDER) --libs)
+endif
+
 DEFS+=
 
 SERLIBPATH=../../lib




More information about the sr-dev mailing list