Skip to content

Commit eafdec5

Browse files
authored
Fix missing libstdc++.so.6 (#5)
libstdc++ was getting statically linked into the binary due to missing target of the symlink from libstdc++.so -> libstdc++.so.6. This was caused by missing a dependency `libstdc++6` of `libstdc++-12-dev`.
1 parent b5129d9 commit eafdec5

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

impl/ubuntu.bzl

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,10 @@ def _extract_libstdcxx(rctx):
2727
url = "https://github.com/reutermj/toolchains_cc.bzl/releases/download/binaries/libstdc++-12-dev_12.3.0-1ubuntu1.22.04_amd64.tar.xz",
2828
output = "sysroot",
2929
)
30+
rctx.download_and_extract(
31+
url = "https://github.com/reutermj/toolchains_cc/releases/download/binaries/libstdc++6_12.3.0-1ubuntu1.22.04_amd64.tar.xz",
32+
output = "sysroot",
33+
)
3034

3135
def _extract_libcxx(rctx):
3236
rctx.download_and_extract(

0 commit comments

Comments
 (0)