diff --git a/src/auditwheel/audit.rs b/src/auditwheel/audit.rs index 72c80dc43..ed628fb50 100644 --- a/src/auditwheel/audit.rs +++ b/src/auditwheel/audit.rs @@ -423,7 +423,11 @@ pub fn get_sysroot_path(target: &Target) -> Result { .context("Failed to read the sysroot path")? .trim() .to_owned(); - return Ok(PathBuf::from(sysroot)); + if sysroot.is_empty() { + return Ok(PathBuf::from("/")); + } else { + return Ok(PathBuf::from(sysroot)); + } } else { bail!( "Failed to get the sysroot path: {}",