File tree Expand file tree Collapse file tree 1 file changed +10
-0
lines changed Expand file tree Collapse file tree 1 file changed +10
-0
lines changed Original file line number Diff line number Diff 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,15 @@ 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+ if build. build . contains ( "netbsd" ) {
443+ // Disable sparc64 asm on NetBSD builders, it uses
444+ // m4(1)'s -B flag, which NetBSD m4 does not support.
445+ configure. arg ( "no-asm" ) ;
446+ }
447+ }
438448 // Make PIE binaries
439449 // Non-PIE linker support was removed in Lollipop
440450 // https://source.android.com/security/enhancements/enhancements50
You can’t perform that action at this time.
0 commit comments