mirror of
https://github.com/hanzoai/visor.git
synced 2026-09-24 17:04:14 +00:00
Specifically, build using bazel WORKSPACE. Bazel modules is still not used and requires further migration. This updates some dependencies to make them compatible with Bazel 8, which in turn requires explicitly adding some new dependencies to support new versions. In some cases existing patches no longer applied and had to be updated. A new patch was added to remove windows toolchains from coral-crosstools, because that functionality requires lots of bazel intrinsics that are no longer defined. At least on my machine, when //vdso:vdso was a dependency (not targetted explicitly), the Gold linker specified in `vdso_linker_option` failed to be found (bazel build //vdso worked); however this led me to discover that the Gold linker is deprecated, hence using it is removed entirely. To make the repo compatible with bazelisk out of the box, a bazelversion file has been added.
18 lines
967 B
Diff
18 lines
967 B
Diff
diff --git a/go/private/rules/cgo.bzl b/go/private/rules/cgo.bzl
|
|
index b8fc93a6..3fec27e4 100644
|
|
--- a/go/private/rules/cgo.bzl
|
|
+++ b/go/private/rules/cgo.bzl
|
|
@@ -144,7 +144,12 @@ def cgo_configure(go, srcs, cdeps, cppopts, copts, cxxopts, clinkopts):
|
|
# libclntsh.dylib.12.1, users have to create a unversioned symbolic link,
|
|
# so it can be treated as a simple shared library too.
|
|
continue
|
|
+ # Make each object in the C libraries after this line to be included in the resulting
|
|
+ # binary object to guarantee necessary symbols (i.e. DPDK drivers) can be found.
|
|
+ lib_opts.append("-Wl,--whole-archive")
|
|
lib_opts.append(lib.path)
|
|
+ # Disable whole-archive for other libraries.
|
|
+ lib_opts.append("-Wl,--no-whole-archive")
|
|
clinkopts.extend(cc_link_flags)
|
|
|
|
elif hasattr(d, "objc"):
|