Merge branch 'egl-no-x11-macro' into 'master'

EGL: Set EGL_NO_X11 macro if --disable-x11 is used.

See merge request glvnd/libglvnd!193
This commit is contained in:
Kyle Brenneman 2019-11-22 23:56:40 +00:00
commit e9b5e559a1

View file

@ -366,6 +366,10 @@ AS_IF([test "x$GLDISPATCH_PAGE_SIZE" != "x"],
[AC_DEFINE_UNQUOTED([GLDISPATCH_PAGE_SIZE], [$GLDISPATCH_PAGE_SIZE],
[Page size to align static dispatch stubs.])])
# Set EGL_NO_X11 unconditionally. Libglvnd doesn't make any assumptions about
# native display or drawable types, so we don't need X11-specific typedefs for
# them.
DEFINES="$DEFINES -DEGL_NO_X11"
dnl default CFLAGS
CFLAGS="$CFLAGS -Wall -Werror -include config.h -fvisibility=hidden $DEFINES"