diff options
author | Iain Sandoe <iain@sandoe.co.uk> | 2024-03-18 09:57:33 +0000 |
---|---|---|
committer | Iain Sandoe <iain@sandoe.co.uk> | 2024-03-19 12:53:31 +0000 |
commit | 71a44faa8a4f76d68356c66c6054e6c242df820f (patch) | |
tree | 88eff6e06938fc8076f01b4fb73cd175ec45427f | |
parent | e47330d0742c985fd8d5fe7089aa381d34967d61 (diff) | |
download | gcc-71a44faa8a4f76d68356c66c6054e6c242df820f.zip gcc-71a44faa8a4f76d68356c66c6054e6c242df820f.tar.gz gcc-71a44faa8a4f76d68356c66c6054e6c242df820f.tar.bz2 |
libstdc++: Sync the atomic_link_flags implementation with GCC.
For Darwin, in order to allow uninstalled testing, we need to provide
a '-B' option pointing to each path containing an uninstalled library
that we are using (these get appended to the embedded runpaths).
This updates the version of the atomic_link_flags proc in the libstdc++
testsuite to do the same as the one in the GCC testsuite.
libstdc++-v3/ChangeLog:
* testsuite/lib/dg-options.exp (atomic_link_flags): Emit a -B
option for the path to the uninstalled libatomic.
Signed-off-by: Iain Sandoe <iain@sandoe.co.uk>
-rw-r--r-- | libstdc++-v3/testsuite/lib/dg-options.exp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libstdc++-v3/testsuite/lib/dg-options.exp b/libstdc++-v3/testsuite/lib/dg-options.exp index bc387d1..00ca678 100644 --- a/libstdc++-v3/testsuite/lib/dg-options.exp +++ b/libstdc++-v3/testsuite/lib/dg-options.exp @@ -314,7 +314,7 @@ proc atomic_link_flags { paths } { if { [file exists "${gccpath}/libatomic/.libs/libatomic.a"] || [file exists "${gccpath}/libatomic/.libs/libatomic.${shlib_ext}"] } { append flags " -B${gccpath}/libatomic/ " - append flags " -L${gccpath}/libatomic/.libs" + append flags " -B${gccpath}/libatomic/.libs" append ld_library_path ":${gccpath}/libatomic/.libs" } } else { |