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 @@ -417,6 +417,7 @@ impl Step for Openssl {
417417 "powerpc64-unknown-linux-gnu" => "linux-ppc64" ,
418418 "powerpc64le-unknown-linux-gnu" => "linux-ppc64le" ,
419419 "s390x-unknown-linux-gnu" => "linux64-s390x" ,
420+ "sparc64-unknown-netbsd" => "BSD-sparc64" ,
420421 "x86_64-apple-darwin" => "darwin64-x86_64-cc" ,
421422 "x86_64-linux-android" => "linux-x86_64" ,
422423 "x86_64-unknown-freebsd" => "BSD-x86_64" ,
@@ -436,6 +437,15 @@ impl Step for Openssl {
436437 configure. arg ( "-mandroid" ) ;
437438 configure. arg ( "-fomit-frame-pointer" ) ;
438439 }
440+ if target == "sparc64-unknown-netbsd" {
441+ // Need -m64 to get assembly generated correctly for sparc64.
442+ configure. arg ( "-m64" ) ;
443+ if build. build . contains ( "netbsd" ) {
444+ // Disable sparc64 asm on NetBSD builders, it uses
445+ // m4(1)'s -B flag, which NetBSD m4 does not support.
446+ configure. arg ( "no-asm" ) ;
447+ }
448+ }
439449 // Make PIE binaries
440450 // Non-PIE linker support was removed in Lollipop
441451 // https://source.android.com/security/enhancements/enhancements50
You can’t perform that action at this time.
0 commit comments