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).
This commit is contained in:
parent
5caca6fa02
commit
adfebed9db
1 changed files with 2 additions and 1 deletions
|
|
@ -388,7 +388,8 @@ impl Step for Openssl {
|
|||
drop(fs::remove_dir_all(&dst));
|
||||
build.run(Command::new("tar").arg("xf").arg(&tarball).current_dir(&out));
|
||||
|
||||
let mut configure = Command::new(obj.join("Configure"));
|
||||
let mut configure = Command::new("perl");
|
||||
configure.arg(obj.join("Configure"));
|
||||
configure.arg(format!("--prefix={}", dst.display()));
|
||||
configure.arg("no-dso");
|
||||
configure.arg("no-ssl2");
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue