From d97187f8c813bf030b76ee9cf6d43d407d8e2966 Mon Sep 17 00:00:00 2001 From: Peter Korsgaard Date: Tue, 4 Dec 2012 12:47:19 -0800 Subject: [PATCH] gd: fix build with freetype but without fontconfig Fixes http://autobuild.buildroot.net/results/3309617d2d5e14c0713dbaf9185815d79293e33b Signed-off-by: Peter Korsgaard --- package/gd/gd.mk | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/package/gd/gd.mk b/package/gd/gd.mk index 476976430a..972d8dda42 100644 --- a/package/gd/gd.mk +++ b/package/gd/gd.mk @@ -18,6 +18,10 @@ GD_CONF_OPT = --without-x --disable-rpath ifeq ($(BR2_PACKAGE_FONTCONFIG),y) GD_DEPENDENCIES += fontconfig GD_CONF_OPT += --with-fontconfig +endif + +ifeq ($(BR2_PACKAGE_FREETYPE),y) +GD_DEPENDENCIES += freetype GD_CONF_ENV += ac_cv_path_FREETYPE_CONFIG=$(STAGING_DIR)/usr/bin/freetype-config endif -- 2.30.2