Skip to content

Commit ab89870

Browse files
committed
bootstrap: use tar -z on extract
Some tar(1) programs—such as NetBSD's—do not automatically decompress.
1 parent cf318c3 commit ab89870

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/bootstrap/native.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -386,7 +386,7 @@ impl Step for Openssl {
386386
let dst = build.openssl_install_dir(target).unwrap();
387387
drop(fs::remove_dir_all(&obj));
388388
drop(fs::remove_dir_all(&dst));
389-
build.run(Command::new("tar").arg("xf").arg(&tarball).current_dir(&out));
389+
build.run(Command::new("tar").arg("zxf").arg(&tarball).current_dir(&out));
390390

391391
let mut configure = Command::new(obj.join("Configure"));
392392
configure.arg(format!("--prefix={}", dst.display()));

0 commit comments

Comments
 (0)