diff --git a/package/piglit/piglit.mk b/package/piglit/piglit.mk index 5ab81aba41..4f95e77cfd 100644 --- a/package/piglit/piglit.mk +++ b/package/piglit/piglit.mk @@ -53,7 +53,8 @@ else PIGLIT_CONF_OPTS += -DPIGLIT_BUILD_GLX_TESTS=OFF endif -ifeq ($(BR2_PACKAGE_HAS_LIBGLES),y) +ifeq ($(BR2_PACKAGE_HAS_LIBEGL)$(BR2_PACKAGE_HAS_LIBGLES),yy) +PIGLIT_DEPENDENCIES += libegl PIGLIT_CONF_OPTS += -DPIGLIT_BUILD_GLES1_TESTS=ON \ -DPIGLIT_BUILD_GLES2_TESTS=ON \ -DPIGLIT_BUILD_GLES3_TESTS=ON