Until now every time cc was invoked also was pkgconfig invoked: $ cc ... `pkg-config --cflags "blkid uuid libnih"` Output of pkg-config can be gather once and then used for all compiler invocation. Signed-off-by: Marcin Mirosław <marcin@xxxxxxxx> --- Makefile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index e9ca92d..a3cb1fa 100644 --- a/Makefile +++ b/Makefile @@ -5,8 +5,8 @@ CFLAGS:=-std=gnu99 -O2 -Wall -D_FILE_OFFSET_BITS=64 -I. $(CFLAGS) LDFLAGS+= PKGCONFIG_LIBS="blkid uuid libnih" -CFLAGS+=`pkg-config --cflags ${PKGCONFIG_LIBS}` -LDLIBS+=`pkg-config --libs ${PKGCONFIG_LIBS}` -lscrypt -lsodium -lkeyutils +CFLAGS+=$(shell pkg-config --cflags ${PKGCONFIG_LIBS}) +LDLIBS+=$(shell pkg-config --libs ${PKGCONFIG_LIBS}) -lscrypt -lsodium -lkeyutils ifeq ($(PREFIX),/usr) ROOT_SBINDIR=/sbin -- 2.7.3 -- To unsubscribe from this list: send the line "unsubscribe linux-bcache" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html