File tree 1 file changed +7
-1
lines changed
cc-toolchain/basic/gcc/toolchain 1 file changed +7
-1
lines changed Original file line number Diff line number Diff line change @@ -98,7 +98,13 @@ filegroup(
98
98
# libc.so.6 is not found.
99
99
# See https://stackoverflow.com/questions/52386530/linker-fails-in-sandbox-when-running-through-bazel-but-works-when-sandboxed-comm
100
100
# Symlinks in Bazel sandbox messes up the sysroot so libc.so.6 and libc_nonshared.a can't be found
101
- # Running the link action outsize of Bazel works.
101
+ # even though running the link action outsize of Bazel works.
102
+ # If we can't fix bazel symlinks to work with gcc toolchain's sysroot, we have to tweak
103
+ # libc.so from
104
+ # GROUP ( /lib64/libc.so.6 /usr/lib64/libc_nonshared.a AS_NEEDED ( /lib64/ld-linux-x86-64.so.2 ) )
105
+ # to
106
+ # GROUP ( /libc.so.6 /libc_nonshared.a AS_NEEDED ( /lib64/ld-linux-x86-64.so.2 ) )
107
+ # so that they're discoverable from system's /lib/x86_64-linux-gnu
102
108
"x86_64-buildroot-linux-gnu/sysroot/lib64/libc.so.6",
103
109
"x86_64-buildroot-linux-gnu/sysroot/usr/lib64/**",
104
110
"lib64/gcc/x86_64-buildroot-linux-gnu/12.3.0/**",
You can’t perform that action at this time.
0 commit comments