diff --git a/frameworks/glfw-sys/build.rs b/frameworks/glfw-sys/build.rs index 79549d9..5ddd3f4 100644 --- a/frameworks/glfw-sys/build.rs +++ b/frameworks/glfw-sys/build.rs @@ -33,6 +33,8 @@ fn compile_glfw() { build::rustc_link_lib!("framework=IOKit"); build::rustc_link_lib!("framework=CoreFoundation"); build::rustc_link_lib!("framework=OpenGL"); + } else if cfg!(target_os = "linux") { + build::rustc_link_lib!("X11"); } }