Module: kamailio
Branch: master
Commit: 66fc01f48ea2d6fa8f20f39e1bcd01d498f8580d
URL:
https://github.com/kamailio/kamailio/commit/66fc01f48ea2d6fa8f20f39e1bcd01d…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Committer: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2016-03-27T14:40:09+02:00
uuid: detect if pkg-config knows about uuid lib
---
Modified: modules/uuid/Makefile
---
Diff:
https://github.com/kamailio/kamailio/commit/66fc01f48ea2d6fa8f20f39e1bcd01d…
Patch:
https://github.com/kamailio/kamailio/commit/66fc01f48ea2d6fa8f20f39e1bcd01d…
---
diff --git a/modules/uuid/Makefile b/modules/uuid/Makefile
index 102e577..3fe7864 100644
--- a/modules/uuid/Makefile
+++ b/modules/uuid/Makefile
@@ -6,12 +6,15 @@ auto_gen=
NAME=uuid.so
ifeq ($(CROSS_COMPILE),)
- BUILDER = $(shell which pkg-config)
+BUILDER = $(shell \
+ if pkg-config --exists uuid; then \
+ echo 'pkg-config uuid'; \
+ fi)
endif
ifneq ($(BUILDER),)
- DEFS += $(shell $(BUILDER) --cflags uuid)
- LIBS += $(shell $(BUILDER) --libs uuid)
+ DEFS += $(shell $(BUILDER) --cflags)
+ LIBS += $(shell $(BUILDER) --libs)
else
DEFS +=-I$(LOCALBASE)/include -I$(SYSBASE)/include
LIBS+=-L$(LOCALBASE)/lib -L$(SYSBASE)/lib -luuid