Fix typo in build.rs link directive for EGL (#30236)

Signed-off-by: Mukilan Thiyagarajan <mukilan@igalia.com>
This commit is contained in:
Mukilan Thiyagarajan 2023-08-29 15:41:32 +05:30 committed by GitHub
parent 2afb7c1975
commit 70f0088986
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -39,14 +39,14 @@ fn main() {
.write_bindings(gl_generator::StaticStructGenerator, &mut file)
.unwrap();
// Historically, Android builds have succeeded with rust-link-lib=EGL.
// Historically, Android builds have succeeded with rustc-link-lib=EGL.
// On Windows when relying on %LIBS% to contain libEGL.lib, however,
// we must explicitly use rustc-link-lib=libEGL or rustc will attempt
// to link EGL.lib instead.
if target.contains("windows") {
println!("cargo:rustc-link-lib=libEGL");
} else {
println!("cargo:rust-link-lib=EGL");
println!("cargo:rustc-link-lib=EGL");
}
}