Skip to content

Commit

Permalink
Remove the '.dll' suffix from windows-gnu target
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
tomassedovic committed Jun 20, 2016
1 parent e8a9bd0 commit cc70502
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tcod_sys/build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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());
Expand Down

0 comments on commit cc70502

Please sign in to comment.