diff --git a/package/postgis/postgis.mk b/package/postgis/postgis.mk index 92a9968993..5a2987b182 100644 --- a/package/postgis/postgis.mk +++ b/package/postgis/postgis.mk @@ -28,4 +28,11 @@ else POSTGIS_CONF_OPTS += --without-raster endif +ifeq ($(BR2_PACKAGE_JSON_C),y) +POSTGIS_DEPENDENCIES += json-c +POSTGIS_CONF_OPTS += --with-json +else +POSTGIS_CONF_OPTS += --without-json +endif + $(eval $(autotools-package))