Skip to content

Commit

Permalink
Add missing linked libraries for RPI support
Browse files Browse the repository at this point in the history
In accordance with deltaphc#11
  • Loading branch information
Sprixitite authored Jun 2, 2022
1 parent 3815078 commit 23c3962
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion raylib-sys/build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -188,7 +188,13 @@ fn link(platform: Platform, platform_os: PlatformOS) {
}
if platform == Platform::Web {
println!("cargo:rustc-link-lib=glfw");
}
} else if platform == Platform::RPI {
println!("cargo:rustc-link-search=/opt/vc/lib");
println!("cargo:rustc-link-lib=bcm_host");
println!("cargo:rustc-link-lib=brcmEGL");
println!("cargo:rustc-link-lib=brcmGLESv2");
println!("cargo:rustc-link-lib=vcos");
}

println!("cargo:rustc-link-lib=static=raylib");
}
Expand Down

0 comments on commit 23c3962

Please sign in to comment.