diff --git a/qb/config.libs.sh b/qb/config.libs.sh index 8bd17acdbd..b81e890ba5 100644 --- a/qb/config.libs.sh +++ b/qb/config.libs.sh @@ -104,10 +104,16 @@ if [ "$HAVE_FLOATSOFTFP" = "yes" ]; then add_define MAKEFILE FLOATSOFTFP_CFLAGS -mfloat-abi=softfp fi -check_header EGL EGL/egl.h EGL/eglext.h + +if [ "$HAVE_ANGLE" = 'yes' ]; then + eval "HAVE_EGL=\"yes\"" + add_dirs INCLUDE ./gfx/include/ANGLE +else + check_header EGL EGL/egl.h EGL/eglext.h # some systems have EGL libs, but no pkgconfig # https://github.com/linux-sunxi/sunxi-mali/pull/8 check_val '' EGL "-l${VC_PREFIX}EGL $EXTRA_GL_LIBS" '' "${VC_PREFIX}egl" '' '' true +fi if [ "$HAVE_EGL" = 'yes' ]; then EGL_LIBS="$EGL_LIBS $EXTRA_GL_LIBS"