third_party/sandboxroot: add libstdc++-static

Change-Id: I5528cfe7a218be10448d7b000756ddcd196cdd4d
Reviewed-on: https://review.monogon.dev/c/monogon/+/1441
Reviewed-by: Serge Bazanski <serge@monogon.tech>
Tested-by: Jenkins CI
diff --git a/third_party/sandboxroot/BUILD.bazel b/third_party/sandboxroot/BUILD.bazel
index 1c29826..fe02ebd 100644
--- a/third_party/sandboxroot/BUILD.bazel
+++ b/third_party/sandboxroot/BUILD.bazel
@@ -142,6 +142,7 @@
         "@libsmartcols-0__2.38.1-1.fc37.x86_64//rpm",
         "@libstdc__plus____plus__-0__12.2.1-4.fc37.x86_64//rpm",
         "@libstdc__plus____plus__-devel-0__12.2.1-4.fc37.x86_64//rpm",
+        "@libstdc__plus____plus__-static-0__12.2.1-4.fc37.x86_64//rpm",
         "@libtasn1-0__4.19.0-1.fc37.x86_64//rpm",
         "@libtirpc-0__1.3.3-0.fc37.x86_64//rpm",
         "@libtool-ltdl-0__2.4.7-2.fc37.x86_64//rpm",
diff --git a/third_party/sandboxroot/regenerate.sh b/third_party/sandboxroot/regenerate.sh
index 698098f..76b9a90 100755
--- a/third_party/sandboxroot/regenerate.sh
+++ b/third_party/sandboxroot/regenerate.sh
@@ -13,6 +13,10 @@
   "python-unversioned-command"
   "glibc-static"
 
+  # Required to build static CGO binaries
+  # see monogon-dev/monogon#192
+  "libstdc++-static"
+
   # Kernel build
   "flex"
   "bison"
diff --git a/third_party/sandboxroot/repositories.bzl b/third_party/sandboxroot/repositories.bzl
index c1cccb6..5cd2ced 100644
--- a/third_party/sandboxroot/repositories.bzl
+++ b/third_party/sandboxroot/repositories.bzl
@@ -1454,6 +1454,17 @@
     )
     
     rpm(
+        name = "libstdc__plus____plus__-static-0__12.2.1-4.fc37.x86_64",
+        sha256 = "36eeedc16aaa522f9d5875102a892a8f78c070c876782b73dbdd37d486735b6b",
+        urls = [
+            "https://ftp.fau.de/fedora/linux/updates/37/Everything/x86_64/Packages/l/libstdc++-static-12.2.1-4.fc37.x86_64.rpm",
+            "https://ftp.halifax.rwth-aachen.de/fedora/linux/updates/37/Everything/x86_64/Packages/l/libstdc++-static-12.2.1-4.fc37.x86_64.rpm",
+            "https://mirror.23m.com/fedora/linux/updates/37/Everything/x86_64/Packages/l/libstdc++-static-12.2.1-4.fc37.x86_64.rpm",
+            "https://ftp.plusline.net/fedora/linux/updates/37/Everything/x86_64/Packages/l/libstdc++-static-12.2.1-4.fc37.x86_64.rpm",
+        ],
+    )
+    
+    rpm(
         name = "libtasn1-0__4.19.0-1.fc37.x86_64",
         sha256 = "35b51a0796af6930b2a8a511df8c51938006cfcfdf74ddfe6482eb9febd87dfa",
         urls = [