[PATCH] Fix libstdc++ tests requiring atomic support on hppa-hpux
Andreas Schwab
schwab@suse.de
Mon Mar 11 13:13:00 GMT 2019
On Mär 11 2019, Jonathan Wakely <jwakely@redhat.com> wrote:
> What do you think about adding the following?
>
> --- a/libstdc++-v3/testsuite/lib/dg-options.exp
> +++ b/libstdc++-v3/testsuite/lib/dg-options.exp
> @@ -257,6 +257,15 @@ proc add_options_for_net_ts { flags } {
> return $flags
> }
>
> +# Add to FLAGS all the target-specific flags to link to libatomic, if required.
> +
> +proc add_options_for_libatomic { flags } {
> + if { [istarget hppa*-*-hpux*] } {
> + return "$flags -L../../libatomic/.libs -latomic"
> + }
> + return $flags
> +}
That should probably also be enabled for riscv*-*-*.
Andreas.
--
Andreas Schwab, SUSE Labs, schwab@suse.de
GPG Key fingerprint = 0196 BAD8 1CE9 1970 F4BE 1748 E4D4 88E3 0EEA B9D7
"And now for something completely different."
More information about the Libstdc++
mailing list