diff options
author | hlopko <hlopko@google.com> | 2018-07-06 02:22:41 -0700 |
---|---|---|
committer | Copybara-Service <copybara-piper@google.com> | 2018-07-06 02:24:14 -0700 |
commit | c4622ac9205d2f1b42dac8c598e83113d39e7f11 (patch) | |
tree | efaadb766049020526e347698d735ffef50c24ed /tools | |
parent | b57ba275c0d67482f8bedc2888c34215721ee50e (diff) |
Fix autodetection of -z linker flags
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
Diffstat (limited to 'tools')
-rw-r--r-- | tools/cpp/unix_cc_configure.bzl | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/cpp/unix_cc_configure.bzl b/tools/cpp/unix_cc_configure.bzl index ccbc948ecd..2056e5c41c 100644 --- a/tools/cpp/unix_cc_configure.bzl +++ b/tools/cpp/unix_cc_configure.bzl @@ -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", |