Skip to content

Commit f29eee9

Browse files
authored
Rollup merge of rust-lang#44131 - smaeul:openssl-perl, r=Mark-Simulacrum
Explicitly run perl for OpenSSL Configure OpenSSL's Configure script is missing a shebang. On some platforms, execve falls back to execution with the shell. Some other platforms, like musl, will fail with an exec format error. Avoid this by calling perl explicitly (since it's a perl script).
2 parents ca94c75 + adfebed commit f29eee9

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/bootstrap/native.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -389,7 +389,8 @@ impl Step for Openssl {
389389
drop(fs::remove_dir_all(&dst));
390390
build.run(Command::new("tar").arg("xf").arg(&tarball).current_dir(&out));
391391

392-
let mut configure = Command::new(obj.join("Configure"));
392+
let mut configure = Command::new("perl");
393+
configure.arg(obj.join("Configure"));
393394
configure.arg(format!("--prefix={}", dst.display()));
394395
configure.arg("no-dso");
395396
configure.arg("no-ssl2");

0 commit comments

Comments
 (0)