Loading system/gd/rust/linux/mgmt/build.rs +3 −0 Original line number Diff line number Diff line Loading @@ -27,6 +27,9 @@ fn main() { let target_dir = std::env::var_os("CARGO_TARGET_DIR").unwrap(); println!("cargo:rustc-link-search=native={}", target_dir.into_string().unwrap()); // Clang requires -lc++ instead of -lstdc++ println!("cargo:rustc-link-lib=c++"); // When cross-compiling, pkg-config is looking for dbus at the host libdir instead of the // sysroot. Adding this dependency here forces the linker to include the current sysroot's // libdir and fixes the build issues. Loading Loading
system/gd/rust/linux/mgmt/build.rs +3 −0 Original line number Diff line number Diff line Loading @@ -27,6 +27,9 @@ fn main() { let target_dir = std::env::var_os("CARGO_TARGET_DIR").unwrap(); println!("cargo:rustc-link-search=native={}", target_dir.into_string().unwrap()); // Clang requires -lc++ instead of -lstdc++ println!("cargo:rustc-link-lib=c++"); // When cross-compiling, pkg-config is looking for dbus at the host libdir instead of the // sysroot. Adding this dependency here forces the linker to include the current sysroot's // libdir and fixes the build issues. Loading