Skip to content

Commit adfebed

Browse files
committed
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).
1 parent 5caca6f commit adfebed

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/bootstrap/native.rs

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

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

0 commit comments

Comments
 (0)