diff --git a/Makefile.vars b/Makefile.vars index efb2d10..ee26812 100755 --- a/Makefile.vars +++ b/Makefile.vars @@ -114,9 +114,9 @@ define get-binary-sources -printf "%P\n" | sort)) # get the flags - CFLAGS_$1 := $(CFLAGS) $(shell pkg-config $(LIBS_$1) --cflags 2>/dev/null) \ + CFLAGS_$1 := $(CFLAGS) $(shell $(PKGCONFIG) $(LIBS_$1) --cflags 2>/dev/null) \ -D BIN="$1$(if $(FOR_WINDOWS),.exe)" - LDFLAGS_$1 := $(LDFLAGS) $(shell pkg-config $(LIBS_$1) --libs 2>/dev/null) + LDFLAGS_$1 := $(LDFLAGS) $(shell $(PKGCONFIG) $(LIBS_$1) --libs 2>/dev/null) endef $(foreach bin,$(BINARIES), \ $(eval $(call get-binary-libs,$(bin))))