diff --git a/toolchain/cc_toolchain_config.bzl b/toolchain/cc_toolchain_config.bzl index efe4652c..c9ff9a42 100644 --- a/toolchain/cc_toolchain_config.bzl +++ b/toolchain/cc_toolchain_config.bzl @@ -249,6 +249,10 @@ def cc_toolchain_config( "-std=" + cxx_standard, "-stdlib=libstdc++", ] + + link_flags.extend([ + "-lstdc++", + ]) elif stdlib == "stdc++": cxx_flags = [ "-std=" + cxx_standard,