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 bazelbuild#5468.

RELNOTES: NONE.
PiperOrigin-RevId: 203449206
  • Loading branch information
hlopko authored and George Gensure committed Aug 2, 2018
1 parent 611b709 commit f14777b
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 f14777b

Please sign in to comment.