From 6aa5563cb3c8864ad15cf83eb6fca3b773da1099 Mon Sep 17 00:00:00 2001 From: Aaro Koskinen Date: Fri, 21 Mar 2014 00:53:31 +0200 Subject: GNUmakefile: allow overriding pkg-config Allow overriding pkg-config, needed to enable cross-compilation. --- GNUmakefile | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'GNUmakefile') diff --git a/GNUmakefile b/GNUmakefile index af91be4..c9d3599 100644 --- a/GNUmakefile +++ b/GNUmakefile @@ -69,6 +69,7 @@ ifeq ($(HAVE_LIBCURL),yes) ida fbi : LDFLAGS += -Wl,--wrap=fopen endif +PKG_CONFIG = pkg-config ######################################################################## # conditional stuff @@ -179,8 +180,8 @@ OBJS_FBI := \ OBJS_FBI += $(filter-out wr/%,$(call ac_lib_mkvar,$(fbi_libs),OBJS)) # jpeg/exif libs -fbi : CFLAGS += $(shell pkg-config --cflags freetype2 fontconfig) -fbi : LDLIBS += $(shell pkg-config --libs freetype2 fontconfig) +fbi : CFLAGS += $(shell $(PKG_CONFIG) --cflags freetype2 fontconfig) +fbi : LDLIBS += $(shell $(PKG_CONFIG) --libs freetype2 fontconfig) fbi : LDLIBS += -ljpeg -lexif -lm fbi: $(OBJS_FBI) $(OBJS_READER) -- cgit