aboutsummaryrefslogtreecommitdiffstats
path: root/GNUmakefile
diff options
context:
space:
mode:
authorAaro Koskinen <aaro.koskinen@iki.fi>2014-03-21 00:53:31 +0200
committerGerd Hoffmann <kraxel@redhat.com>2014-03-21 09:35:07 +0100
commit6aa5563cb3c8864ad15cf83eb6fca3b773da1099 (patch)
tree364ad384ae0d1cf7be800d69e62e431f3ed2313a /GNUmakefile
parent056f6c9eee4bac9fa7a4e5f20ae271a3e395794f (diff)
downloadfbida-6aa5563cb3c8864ad15cf83eb6fca3b773da1099.tar.gz
GNUmakefile: allow overriding pkg-config
Allow overriding pkg-config, needed to enable cross-compilation.
Diffstat (limited to 'GNUmakefile')
-rw-r--r--GNUmakefile5
1 files changed, 3 insertions, 2 deletions
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)