using ldd, not readelf

This commit is contained in:
dankeyy 2023-02-02 13:41:29 +02:00
parent 65bc1a7c80
commit 1dbd3289ff
No known key found for this signature in database
GPG key ID: 9EBEF7DB1A70533D

View file

@ -35,7 +35,7 @@ fn nixos_error_if_dynamic(url: &str, dest_dir: &PathBuf) {
.arg("-c")
.arg(format!("ldd {}/linux-x86_64.rh*", dest_dir.display()))
.output()
.expect("readelf command failed to start");
.expect("ldd command failed to start");
let is_static = String::from_utf8_lossy(&ldd_output.stdout).contains("statically linked");
if !is_static {