Skip to content

Commit

Permalink
Add static-libgcc to clang toolchain flags.
Browse files Browse the repository at this point in the history
Summary: Previous diff added `static-libgcc` to the gcc toolchain flags, but forgot to add it to the clang flags.

Test Plan: Run bpf tests with #ci:bpf-build .

Reviewers: zasgar, vihang

Reviewed By: zasgar, vihang

Signed-off-by: James Bartlett <jamesbartlett@pixielabs.ai>

Differential Revision: https://phab.corp.pixielabs.ai/D12734

GitOrigin-RevId: fd71dedc4498ad9dc500c177a40c2e99fa692c2c
  • Loading branch information
JamesMBartlett authored and copybaranaut committed Jan 7, 2023
1 parent 6d0ce14 commit 64625ce
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions bazel/cc_toolchains/clang.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,7 @@ def _clang_x86_64_gnu_with_options(suffix = "", enable_sanitizers = True, extra_
"-fPIC",
],
link_flags = [
"-static-libgcc",
"-fuse-ld=lld",
"-Wl,-no-as-needed",
"-Wl,-z,relro,-z,now",
Expand Down

0 comments on commit 64625ce

Please sign in to comment.