From 56c6cfecaa018914ef275dbafa7449bfa28e4ed7 Mon Sep 17 00:00:00 2001 From: Matthew Rodusek <7519129+bitwizeshift@users.noreply.github.com> Date: Mon, 6 May 2024 22:03:46 -0400 Subject: [PATCH] =?UTF-8?q?=F0=9F=A9=B9=20Fix=20incorrect=20link=20library?= =?UTF-8?q?-type?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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. --- frameworks/glew-sys/build.rs | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/frameworks/glew-sys/build.rs b/frameworks/glew-sys/build.rs index 97915d7..572c183 100644 --- a/frameworks/glew-sys/build.rs +++ b/frameworks/glew-sys/build.rs @@ -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(); @@ -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") } }