Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix tests configuration and building when only GLVND full OpenGL implementation is present #4201

Merged
merged 1 commit into from Mar 17, 2021

Conversation

vanfanel
Copy link
Contributor

PREVIOUS ISSUE

Many of the tests in /tests wouldn't link if only the modern full OpenGL implementation (GLVND) is present on the system. This commit fixes that.

WHAT THIS COMMIT DOES

What this commit does is enable the libOpenGL.so detection in tests/configure.ac.
So if libOpenGL.so is present test programs will be linked against -lOpenGL instead of -lGL.

-If both libGL.so and libOpenGL.so are present, libOpenGL.so is preferred as it's a modern and vendor-neutral implementation, vs the old and X11-bound libGL.so
-If only libGL.so is present, libGL.so will be used.
-If only libOpenGL.so is present it will be used.

@slouken slouken merged commit e6b8700 into libsdl-org:main Mar 17, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants