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