aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--package/links/links.mk3
1 files changed, 3 insertions, 0 deletions
diff --git a/package/links/links.mk b/package/links/links.mk
index ec1771e3f4..97af418e7d 100644
--- a/package/links/links.mk
+++ b/package/links/links.mk
@@ -28,7 +28,10 @@ else
LINKS_CONF_OPTS += --without-directfb
endif
ifeq ($(BR2_PACKAGE_JPEG),y)
+LINKS_CONF_OPTS += --with-libjpeg
LINKS_DEPENDENCIES += jpeg
+else
+LINKS_CONF_OPTS += --without-libjpeg
endif
ifeq ($(BR2_PACKAGE_TIFF),y)
LINKS_CONF_OPTS += --with-libtiff