Skip to content

Commit

Permalink
🩹 Fix incorrect link library-type
Browse files Browse the repository at this point in the history
This was incorrectly using `native=` instead of `dylib=` for Ubuntu
builds. The mistake stems from `native=` being used for search-paths
but not for library links. Whoops.
  • Loading branch information
bitwizeshift committed May 7, 2024
1 parent 526d3bf commit 56c6cfe
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions frameworks/glew-sys/build.rs
Original file line number Diff line number Diff line change
@@ -1,10 +1,7 @@
//! Build script to compile GLFW from source, and generate a valid bindgen-C API
//! from GLFW.
use std::{
env,
path::{Path, PathBuf},
};
use std::path::PathBuf;

fn main() {
compile_glew();
Expand All @@ -13,7 +10,7 @@ fn main() {
if cfg!(any(target_os = "macos", target_os = "ios")) {
build::rustc_link_lib!("framework=OpenGL");
} else {
build::rustc_link_lib!("native=opengl")
build::rustc_link_lib!("dylib=opengl")
}
}

Expand Down

0 comments on commit 56c6cfe

Please sign in to comment.