diff --git a/package/gnuplot/gnuplot.mk b/package/gnuplot/gnuplot.mk index a68c7ae391..25ba90d8b5 100644 --- a/package/gnuplot/gnuplot.mk +++ b/package/gnuplot/gnuplot.mk @@ -24,7 +24,7 @@ GNUPLOT_CONF_OPT = --without-x \ --without-latex \ --without-cairo -ifeq ($(BR2_PACKAGE_GD),y) +ifeq ($(BR2_PACKAGE_GD)$(BR2_PACKAGE_LIBPNG),yy) GNUPLOT_CONF_OPT += --with-gd GNUPLOT_DEPENDENCIES += gd GNUPLOT_CONF_ENV += \