libstdc++: Add -latomic to test flags for 32-bit sparc-linux
Without this I see a number of tests failing when -m32 is used. libstdc++-v3/ChangeLog: * testsuite/lib/dg-options.exp (add_options_for_libatomic): Also add libatomic options for 32-bit sparc*-*-linux-gnu.
This commit is contained in:
parent
432f60c90d
commit
a25590f29d
|
@ -264,6 +264,7 @@ proc add_options_for_libatomic { flags } {
|
||||||
if { [istarget hppa*-*-hpux*]
|
if { [istarget hppa*-*-hpux*]
|
||||||
|| ([istarget powerpc*-*-*] && [check_effective_target_ilp32])
|
|| ([istarget powerpc*-*-*] && [check_effective_target_ilp32])
|
||||||
|| [istarget riscv*-*-*]
|
|| [istarget riscv*-*-*]
|
||||||
|
|| ([istarget sparc*-*-linux-gnu] && [check_effective_target_ilp32])
|
||||||
} {
|
} {
|
||||||
return "$flags -L../../libatomic/.libs -latomic"
|
return "$flags -L../../libatomic/.libs -latomic"
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue