git: 03a6f0068f1e - stable/12 - Add a few new source files to libc++, in particular the implementation part of std::random_shuffle. These were split off at some point by upstream, but I forgot to add them to our Makefile.

From: Dimitry Andric <dim_at_FreeBSD.org>
Date: Wed, 22 Dec 2021 10:06:03 UTC
The branch stable/12 has been updated by dim:

URL: https://cgit.FreeBSD.org/src/commit/?id=03a6f0068f1e2211252f4d4c2a8f41abcf81c190

commit 03a6f0068f1e2211252f4d4c2a8f41abcf81c190
Author:     Dimitry Andric <dim@FreeBSD.org>
AuthorDate: 2020-08-22 12:05:11 +0000
Commit:     Dimitry Andric <dim@FreeBSD.org>
CommitDate: 2021-12-22 09:58:33 +0000

    Add a few new source files to libc++, in particular the implementation
    part of std::random_shuffle. These were split off at some point by
    upstream, but I forgot to add them to our Makefile.
    
    This should allow some ports which use std::random_shuffle to correctly
    link again.
    
    Reported by:    thierry
    PR:             248795
    MFC after:      6 weeks
    X-MFX-With:     r364284
    
    (cherry picked from commit c37f312d3b9950eb66602e669c548a0bfabd4b7d)
---
 lib/libc++/Makefile | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/lib/libc++/Makefile b/lib/libc++/Makefile
index 880ca5dec056..bfb394fda2fb 100644
--- a/lib/libc++/Makefile
+++ b/lib/libc++/Makefile
@@ -16,6 +16,8 @@ SHLIB_LDSCRIPT=	libc++.ldscript
 
 SRCS+=		algorithm.cpp
 SRCS+=		any.cpp
+SRCS+=		atomic.cpp
+SRCS+=		barrier.cpp
 SRCS+=		bind.cpp
 SRCS+=		charconv.cpp
 SRCS+=		chrono.cpp
@@ -38,6 +40,7 @@ SRCS+=		mutex_destructor.cpp
 SRCS+=		new.cpp
 SRCS+=		optional.cpp
 SRCS+=		random.cpp
+SRCS+=		random_shuffle.cpp
 SRCS+=		regex.cpp
 SRCS+=		shared_mutex.cpp
 SRCS+=		stdexcept.cpp