Module: kamailio Branch: master Commit: d3208e1859051eb09013f855126f7f5f5ec47ab8 URL: https://github.com/kamailio/kamailio/commit/d3208e1859051eb09013f855126f7f5f...
Author: Daniel-Constantin Mierla miconda@gmail.com Committer: Daniel-Constantin Mierla miconda@gmail.com Date: 2019-01-13T11:03:28+01:00
presence: Makefile - link agaist libicu on macos/darwin
- libxml2 needs it but its pkg-config doesn't list it
---
Modified: src/modules/presence/Makefile
---
Diff: https://github.com/kamailio/kamailio/commit/d3208e1859051eb09013f855126f7f5f... Patch: https://github.com/kamailio/kamailio/commit/d3208e1859051eb09013f855126f7f5f...
---
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