Fix missing deps in some bzl_library targets

Copybara Import from https://github.com/bazelbuild/rules_cc/pull/439

BEGIN_PUBLIC
Fix missing deps in some bzl_library targets (#439)

Complete transitive deps of .bzl files are needed for tools like Stardoc.

See https://github.com/bazel-contrib/rules_go/issues/4394

Closes #439
END_PUBLIC

COPYBARA_INTEGRATE_REVIEW=https://github.com/bazelbuild/rules_cc/pull/439 from tetromino:main 49a761d5b16b4905a2cef8cbb0d0522bdc441d49
PiperOrigin-RevId: 782874155
Change-Id: Ie4995859f8a64eda3c64fd515c41dfc23e6b6cf1
diff --git a/cc/BUILD b/cc/BUILD
index 001692c..04637af 100644
--- a/cc/BUILD
+++ b/cc/BUILD
@@ -86,6 +86,7 @@
     name = "find_cc_toolchain_bzl",
     srcs = ["find_cc_toolchain.bzl"],
     visibility = ["//visibility:public"],
+    deps = ["//cc/common"],
 )
 
 bzl_library(
@@ -104,6 +105,10 @@
     name = "repositories_bzl",
     srcs = ["repositories.bzl"],
     visibility = ["//visibility:private"],
+    deps = [
+        "//cc/common",
+        "//cc/private/toolchain:cc_configure_bzl",
+    ],
 )
 
 bzl_library(
diff --git a/cc/private/toolchain/BUILD b/cc/private/toolchain/BUILD
index 5c30925..13b4012 100644
--- a/cc/private/toolchain/BUILD
+++ b/cc/private/toolchain/BUILD
@@ -13,6 +13,7 @@
 # limitations under the License.
 #
 
+load("@bazel_skylib//:bzl_library.bzl", "bzl_library")
 load("//cc:cc_library.bzl", "cc_library")
 load("//cc/toolchains:cc_flags_supplier.bzl", "cc_flags_supplier")
 load("//cc/toolchains:compiler_flag.bzl", "compiler_flag")
@@ -88,6 +89,16 @@
     srcs = ["link_dynamic_library.sh"],
 )
 
+bzl_library(
+    name = "cc_configure_bzl",
+    srcs = [
+        "cc_configure.bzl",
+        "lib_cc_configure.bzl",
+        "unix_cc_configure.bzl",
+        "windows_cc_configure.bzl",
+    ],
+)
+
 filegroup(
     name = "lib_cc_configure",
     srcs = ["lib_cc_configure.bzl"],