third_party: Adds librt to glibc distrubution
diff --git a/third_party/debian_stretch_amd64_sysroot.BUILD b/third_party/debian_stretch_amd64_sysroot.BUILD
index 5921c8d..91220cf 100644
--- a/third_party/debian_stretch_amd64_sysroot.BUILD
+++ b/third_party/debian_stretch_amd64_sysroot.BUILD
@@ -95,6 +95,20 @@
"@platforms//os:linux": ["@platforms//cpu:x86_64"],
"//conditions:default": ["@platforms//:incompatible"],
}),
+ deps = [":rt"],
+)
+
+cc_toolchain_import(
+ name = "rt",
+ additional_libs = [
+ "lib/x86_64-linux-gnu/librt.so.1",
+ "lib/x86_64-linux-gnu/librt-2.24.so",
+ ],
+ static_library = "usr/lib/x86_64-linux-gnu/librt.a",
+ target_compatible_with = select({
+ "@platforms//os:linux": ["@platforms//cpu:x86_64"],
+ "//conditions:default": ["@platforms//:incompatible"],
+ }),
)
cc_toolchain_import(