From e300f092fa8f4157179f8de5024a86aa2ba31efc Mon Sep 17 00:00:00 2001 From: "Thomas \"Cakeisalie5\" Touhey" Date: Wed, 11 Jan 2017 15:51:32 +0100 Subject: [PATCH] The very essence of oopsie - corrected cross-platform thingies. --- Makefile.vars | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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))))