Module: kamailio Branch: master Commit: 46084c898d0598e94c7f22ab03d321e037fd7f55 URL: https://github.com/kamailio/kamailio/commit/46084c898d0598e94c7f22ab03d321e037fd7f55
Author: Daniel-Constantin Mierla <mico...@gmail.com> Committer: Daniel-Constantin Mierla <mico...@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 _______________________________________________ Kamailio (SER) - Development Mailing List sr-dev@lists.kamailio.org https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-dev