[sr-dev] git:master:66fc01f4: uuid: detect if pkg-config knows about uuid lib

Daniel-Constantin Mierla miconda at gmail.com
Mon Mar 28 10:58:10 CEST 2016


Module: kamailio
Branch: master
Commit: 66fc01f48ea2d6fa8f20f39e1bcd01d498f8580d
URL: https://github.com/kamailio/kamailio/commit/66fc01f48ea2d6fa8f20f39e1bcd01d498f8580d

Author: Daniel-Constantin Mierla <miconda at gmail.com>
Committer: Daniel-Constantin Mierla <miconda at 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/66fc01f48ea2d6fa8f20f39e1bcd01d498f8580d.diff
Patch: https://github.com/kamailio/kamailio/commit/66fc01f48ea2d6fa8f20f39e1bcd01d498f8580d.patch

---

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




More information about the sr-dev mailing list