Skip to content

Commit

Permalink
Fix autodetection of -z linker flags
Browse files Browse the repository at this point in the history
Clang reports missing -Wl,-z,relro as "ld: unknwon option:
-z"). This cl fixes the autodetection to expect the short variant.

Fixes #5468.

RELNOTES: NONE.
PiperOrigin-RevId: 203449206
  • Loading branch information
hlopko authored and Copybara-Service committed Jul 6, 2018
1 parent b57ba27 commit c4622ac
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tools/cpp/unix_cc_configure.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -275,7 +275,7 @@ def _crosstool_content(repository_ctx, cc, cpu_value, darwin):
repository_ctx,
cc,
"-Wl,-z,relro,-z,now",
"-z,relro,-z,now",
"-z",
) + (
[
"-undefined",
Expand Down

0 comments on commit c4622ac

Please sign in to comment.