On 20 March 2017 at 11:24, Gerd Hoffmann <kra...@redhat.com> wrote:
> Use "unsigned int" instead of GLenum and GLuint, so we don't depend on
> these types from opengl headers.  Drop all CONFIG_OPENGL #ifdefs from
> console.h
>
> Reported-by: Peter Maydell <peter.mayd...@linaro.org>
> Signed-off-by: Gerd Hoffmann <kra...@redhat.com>

This isn't sufficient to fix the compile failure on OpenBSD,
because there are still files which #include <epoxy/gl.h> but
which aren't being compiled with OPENGL_CFLAGS:

 hw/lm32/milkymist.c (via milkymist-hw.h)
 ui/sdl2-gl.c
 ui/egl-context.c (via ui/egl-context.h and ui/egl-helpers.h)
 ui/gtk.c (via ui/gtk.h and ui/egl-helpers.h)

just to take the first few I found via grep. (The OpenBSD
build fails on egl-context.o.)

Rather than trying to figure out exactly which .c files need
to have the OPENGL_CFLAGS applied to them, I think it would
be better if we just put them into the standard QEMU_CFLAGS
that we use for building all objects, the same way we do
for other library CFLAGS requirements. Or is there a reason
we can't do that with OpenGL?

thanks
-- PMM

Reply via email to