We are currently migrating Bugzilla to GitHub issues.
Any changes made to the bug tracker now will be lost, so please do not post new bugs or make changes to them.
When we're done, all bug URLs will redirect to their equivalent location on the new bug tracker.

Bug 5270 - EGL detection fails on systems with recent headers and no X11
Summary: EGL detection fails on systems with recent headers and no X11
Status: RESOLVED FIXED
Alias: None
Product: SDL
Classification: Unclassified
Component: video (show other bugs)
Version: 2.0.13
Hardware: x86_64 Linux
: P2 normal
Assignee: Sam Lantinga
QA Contact: Sam Lantinga
URL:
Keywords: target-2.0.14
Depends on:
Blocks:
 
Reported: 2020-08-25 13:58 UTC by Brian Kubisiak
Modified: 2020-11-15 01:10 UTC (History)
2 users (show)

See Also:


Attachments
patch (1.38 KB, patch)
2020-08-25 13:58 UTC, Brian Kubisiak
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Brian Kubisiak 2020-08-25 13:58:05 UTC
Created attachment 4447 [details]
patch

Recent EGL headers on Linux use EGL_NO_X11 instead of MESA_EGL_NO_X11_HEADERS on systems where X11 should not be used. As a result, on systems where X11 is not present, the configure script would fail to enable EGL (and Wayland) support.

The attached patch should fix this issue. The old MESA_EGL_NO_X11_HEADERS remains for systems that do not have the updated headers. Note that the newer macro has already been added to EXTRA_CFLAGS, so the build still worked, it is just the detection during configuration that is failing.
Comment 1 Ozkan Sezer 2020-11-15 01:10:35 UTC
This patch is in: https://hg.libsdl.org/SDL/rev/69b6e0c949ee
Closing as fixed.