This is the mail archive of the
libstdc++@gcc.gnu.org
mailing list for the libstdc++ project.
Re: [PATCH] Fix libstdc++ tests requiring atomic support on hppa-hpux
- From: Joseph Myers <joseph at codesourcery dot com>
- To: Jonathan Wakely <jwakely at redhat dot com>
- Cc: John David Anglin <dave dot anglin at bell dot net>, GCC Patches <gcc-patches at gcc dot gnu dot org>, <libstdc++ at gcc dot gnu dot org>
- Date: Tue, 12 Mar 2019 23:01:54 +0000
- Subject: Re: [PATCH] Fix libstdc++ tests requiring atomic support on hppa-hpux
- References: <54b2ad46-4e9c-1abe-07f9-7d123ff63c47@bell.net> <20190311120137.GW21503@redhat.com>
On Mon, 11 Mar 2019, Jonathan Wakely wrote:
> +proc add_options_for_libatomic { flags } {
> + if { [istarget hppa*-*-hpux*] } {
> + return "$flags -L../../libatomic/.libs -latomic"
> + }
It's generally inappropriate to hardcode such ../../libatomic/.libs paths
without making sure it's for build-tree rather than installed testing (for
installed testing, -latomic can be found without any -L option and it's
the board file's responsibility to set LD_LIBRARY_PATH if necessary).
--
Joseph S. Myers
joseph@codesourcery.com