diff --git a/ctru-sys/Cargo.toml b/ctru-sys/Cargo.toml index c1d14d8..93dbc4f 100644 --- a/ctru-sys/Cargo.toml +++ b/ctru-sys/Cargo.toml @@ -6,3 +6,4 @@ license = "https://en.wikipedia.org/wiki/Zlib_License" [dependencies] libc = { version = "0.2", default-features = false } +linker-fix-3ds = { git = "https://github.com/AzureMarker/rust-linker-fix-3ds.git" } diff --git a/ctru-sys/build.rs b/ctru-sys/build.rs index 96576e0..1f14260 100644 --- a/ctru-sys/build.rs +++ b/ctru-sys/build.rs @@ -27,5 +27,4 @@ fn main() { println!("cargo:rustc-link-lib=static=sysbase"); println!("cargo:rustc-link-lib=static=c"); println!("cargo:rustc-link-lib=static=pthread_3ds"); - println!("cargo:rustc-link-lib=static=linker_fix_3ds"); } diff --git a/ctru-sys/liblinker_fix_3ds.a b/ctru-sys/liblinker_fix_3ds.a deleted file mode 100644 index e79e57c..0000000 Binary files a/ctru-sys/liblinker_fix_3ds.a and /dev/null differ diff --git a/ctru-sys/src/lib.rs b/ctru-sys/src/lib.rs index 40ffd94..3083ae2 100644 --- a/ctru-sys/src/lib.rs +++ b/ctru-sys/src/lib.rs @@ -4,5 +4,6 @@ #![no_std] extern crate libc; +extern crate linker_fix_3ds; include!("bindings.rs");