gfx-rs / gfx

[maintenance mode] A low-overhead Vulkan-like GPU API for Rust.
http://gfx-rs.github.io/
Apache License 2.0
5.35k stars 548 forks source link

Use libc for the use-rtld-next Vulkan backend feature #3634

Closed yzsolt closed 3 years ago

yzsolt commented 3 years ago

RTLD_NEXT is a GNU-specific flag which isn't supported currently by libloading, so we can't replace shared_library with it. However, we can simply use dlsym directly, and since libc is already present in the dependency chain, in practice it still means building one less dependency.

Closes #3540

PR checklist:

bors[bot] commented 3 years ago

Build succeeded: