From cc70502c582ad565d0b25202007869d2d62c33f1 Mon Sep 17 00:00:00 2001 From: Tomas Sedovic Date: Mon, 20 Jun 2016 22:26:29 +0200 Subject: [PATCH] Remove the '.dll' suffix from windows-gnu target This should fix the issue #222 according to the following build run: https://ci.appveyor.com/project/tomassedovic/tcod-window/build/1.0.5 Looks like MinGW expects to get just the dynamic library's name without the suffix. --- tcod_sys/build.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tcod_sys/build.rs b/tcod_sys/build.rs index ce25a340d..3b2ce9199 100644 --- a/tcod_sys/build.rs +++ b/tcod_sys/build.rs @@ -208,7 +208,7 @@ fn main() { compile_config(config); assert!(dst.join("libtcod.dll").is_file()); - println!("cargo:rustc-link-lib=dylib={}", "SDL.dll"); + println!("cargo:rustc-link-lib=dylib={}", "SDL"); println!("cargo:rustc-link-lib=dylib={}", "opengl32"); println!("cargo:rustc-link-search=native={}", sdl_lib_dir.display()); println!("cargo:rustc-link-search=native={}", dst.display());