From 66fc01f48ea2d6fa8f20f39e1bcd01d498f8580d Mon Sep 17 00:00:00 2001 From: Daniel-Constantin Mierla Date: Sun, 27 Mar 2016 14:40:09 +0200 Subject: [PATCH] uuid: detect if pkg-config knows about uuid lib --- modules/uuid/Makefile | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/modules/uuid/Makefile b/modules/uuid/Makefile index 102e57766fa..3fe7864212b 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