File tree 1 file changed +10
-0
lines changed
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 {
417
417
"powerpc64-unknown-linux-gnu" => "linux-ppc64" ,
418
418
"powerpc64le-unknown-linux-gnu" => "linux-ppc64le" ,
419
419
"s390x-unknown-linux-gnu" => "linux64-s390x" ,
420
+ "sparc64-unknown-netbsd" => "BSD-sparc64" ,
420
421
"x86_64-apple-darwin" => "darwin64-x86_64-cc" ,
421
422
"x86_64-linux-android" => "linux-x86_64" ,
422
423
"x86_64-unknown-freebsd" => "BSD-x86_64" ,
@@ -436,6 +437,15 @@ impl Step for Openssl {
436
437
configure. arg ( "-mandroid" ) ;
437
438
configure. arg ( "-fomit-frame-pointer" ) ;
438
439
}
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
+ }
439
449
// Make PIE binaries
440
450
// Non-PIE linker support was removed in Lollipop
441
451
// https://source.android.com/security/enhancements/enhancements50
You can’t perform that action at this time.
0 commit comments