Skip to content

Commit 2047a0d

Browse files
committed
bootstrap: add openssl config for sparc64-unknown-netbsd
1 parent 2f1ef9e commit 2047a0d

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/bootstrap/native.rs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -416,6 +416,7 @@ impl Step for Openssl {
416416
"powerpc64-unknown-linux-gnu" => "linux-ppc64",
417417
"powerpc64le-unknown-linux-gnu" => "linux-ppc64le",
418418
"s390x-unknown-linux-gnu" => "linux64-s390x",
419+
"sparc64-unknown-netbsd" => "BSD-sparc64",
419420
"x86_64-apple-darwin" => "darwin64-x86_64-cc",
420421
"x86_64-linux-android" => "linux-x86_64",
421422
"x86_64-unknown-freebsd" => "BSD-x86_64",
@@ -435,6 +436,10 @@ impl Step for Openssl {
435436
configure.arg("-mandroid");
436437
configure.arg("-fomit-frame-pointer");
437438
}
439+
if target == "sparc64-unknown-netbsd" {
440+
// Need -m64 to get assembly generated correctly for sparc64.
441+
configure.arg("-m64");
442+
}
438443
// Make PIE binaries
439444
// Non-PIE linker support was removed in Lollipop
440445
// https://source.android.com/security/enhancements/enhancements50

0 commit comments

Comments
 (0)