This is the mail archive of the libstdc++@gcc.gnu.org mailing list for the libstdc++ project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH] Fix libstdc++ tests requiring atomic support on hppa-hpux


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."


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]