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
RELNOTES: NONE.
@@ -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",
