Skip to content

Conversation

@timothee-haudebourg
Copy link

By default cargo only uses the -lEGL flag to link against the EGL library and assume ld will find it. This is not the case on some platforms. I'm using the nix package manager on nixos, and libEGL cannot be found without using pkg_config.
In this PR I've added a new build.rs script that will invoke pkg_config at compile time. I've tested it on nixos and it does the job.

Timothée Haudebourg added 3 commits June 15, 2019 17:47
Bug fix: the eglGetConfigs function was wrongly typed. `configs' should
be a pointer to an array of `EGLConfig', hence have type `*mut EGLConfig' where
it had the (wrong) type `EGLConfig'.

Refactoring: constants and functions are now ordered by EGL version to
have a more sustainable code.
My bad, this commit had nothing to do in this branch.
@timothee-haudebourg
Copy link
Author

Sorry for the last two commits (reverted), I pushed on the wrong branch. I'll do a separate PR for EGL 1.5.

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.

1 participant