Skip to content

Commit

Permalink
Add comment
Browse files Browse the repository at this point in the history
  • Loading branch information
Vinh Tran committed Feb 6, 2024
1 parent ee9c67c commit 1c6c0c3
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion cc-toolchain/basic/gcc/toolchain/cc_toolchain.BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,13 @@ filegroup(
# libc.so.6 is not found.
# See https://stackoverflow.com/questions/52386530/linker-fails-in-sandbox-when-running-through-bazel-but-works-when-sandboxed-comm
# Symlinks in Bazel sandbox messes up the sysroot so libc.so.6 and libc_nonshared.a can't be found
# Running the link action outsize of Bazel works.
# even though running the link action outsize of Bazel works.
# If we can't fix bazel symlinks to work with gcc toolchain's sysroot, we have to tweak
# libc.so from
# GROUP ( /lib64/libc.so.6 /usr/lib64/libc_nonshared.a AS_NEEDED ( /lib64/ld-linux-x86-64.so.2 ) )
# to
# GROUP ( /libc.so.6 /libc_nonshared.a AS_NEEDED ( /lib64/ld-linux-x86-64.so.2 ) )
# so that they're discoverable from system's /lib/x86_64-linux-gnu
"x86_64-buildroot-linux-gnu/sysroot/lib64/libc.so.6",
"x86_64-buildroot-linux-gnu/sysroot/usr/lib64/**",
"lib64/gcc/x86_64-buildroot-linux-gnu/12.3.0/**",
Expand Down

0 comments on commit 1c6c0c3

Please sign in to comment.