Hello,
i have a strange problem.
If I change path to relative - it doesn't compile.
Error:
error: could not find native static library `mylib`, perhaps an -L flag is missing?
My builds.rs :
fn main()
{
let man_dir = env::var("CARGO_MANIFEST_DIR").unwrap();
// absolute path - it's working
//println!("cargo:rustc-link-search=native=/home/mhanusek/work/VersionControl/my_lib_c/stack/lib");
// it's not working
println!("cargo:rustc-link-search=native={}/../../", man_dir);
println!("cargo:rustc-flags=-l dylib=stdc++");
println!("cargo:rerun-if-changed=build.rs");
}