File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -386,7 +386,7 @@ func TestFlagW(t *testing.T) {
386
386
{"-s" , false }, // -s implies -w
387
387
{"-s -w=0" , true }, // -w=0 negates the implied -w
388
388
}
389
- if testenv .HasCGO () {
389
+ if testenv .HasCGO () && runtime . GOOS != "solaris" { // Solaris linker doesn't support the -S flag
390
390
tests = append (tests ,
391
391
testCase {"-w -linkmode=external" , false },
392
392
testCase {"-s -linkmode=external" , false },
Original file line number Diff line number Diff line change @@ -1452,7 +1452,7 @@ func (ctxt *Link) hostlink() {
1452
1452
argv = append (argv , "-s" )
1453
1453
}
1454
1454
} else if * FlagW {
1455
- if ! ctxt .IsAIX () { // The AIX linker's -S has different meaning
1455
+ if ! ctxt .IsAIX () && ! ctxt . IsSolaris () { // The AIX and Solaris linkers' -S has different meaning
1456
1456
argv = append (argv , "-Wl,-S" ) // suppress debugging symbols
1457
1457
}
1458
1458
}
You can’t perform that action at this time.
0 commit comments