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