Skip to content

Commit

Permalink
bootstrap: avoid m4 -B for NetBSD-built sparc64 OpenSSL
Browse files Browse the repository at this point in the history
  • Loading branch information
jakllsch committed Sep 5, 2017
1 parent 2047a0d commit 847d1ff
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/bootstrap/native.rs
Original file line number Diff line number Diff line change
Expand Up @@ -439,6 +439,11 @@ impl Step for Openssl {
if target == "sparc64-unknown-netbsd" {
// Need -m64 to get assembly generated correctly for sparc64.
configure.arg("-m64");
if build.build.contains("netbsd") {
// Disable sparc64 asm on NetBSD builders, it uses
// m4(1)'s -B flag, which NetBSD m4 does not support.
configure.arg("no-asm");
}
}
// Make PIE binaries
// Non-PIE linker support was removed in Lollipop
Expand Down

0 comments on commit 847d1ff

Please sign in to comment.