public inbox for libstdc++-cvs@sourceware.org
help / color / mirror / Atom feed
* [gcc r12-10374] libstdc++: Sync the atomic_link_flags implementation with GCC.
@ 2024-04-21 13:03 Iain D Sandoe
  0 siblings, 0 replies; only message in thread
From: Iain D Sandoe @ 2024-04-21 13:03 UTC (permalink / raw)
  To: gcc-cvs, libstdc++-cvs

https://gcc.gnu.org/g:63842c1dd7f48ed8b8284455c05ea5dfccfcd42b

commit r12-10374-g63842c1dd7f48ed8b8284455c05ea5dfccfcd42b
Author: Iain Sandoe <iain@sandoe.co.uk>
Date:   Mon Mar 18 09:57:33 2024 +0000

    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>
    (cherry picked from commit 71a44faa8a4f76d68356c66c6054e6c242df820f)

Diff:
---
 libstdc++-v3/testsuite/lib/dg-options.exp | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libstdc++-v3/testsuite/lib/dg-options.exp b/libstdc++-v3/testsuite/lib/dg-options.exp
index 203bb0dfed5..7269b6a4efc 100644
--- a/libstdc++-v3/testsuite/lib/dg-options.exp
+++ b/libstdc++-v3/testsuite/lib/dg-options.exp
@@ -274,7 +274,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 {

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2024-04-21 13:03 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-04-21 13:03 [gcc r12-10374] libstdc++: Sync the atomic_link_flags implementation with GCC Iain D Sandoe

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).