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
diff --git a/tools/cpp/unix_cc_configure.bzl b/tools/cpp/unix_cc_configure.bzl
index ccbc948..2056e5c 100644
--- a/tools/cpp/unix_cc_configure.bzl
+++ b/tools/cpp/unix_cc_configure.bzl
@@ -275,7 +275,7 @@
repository_ctx,
cc,
"-Wl,-z,relro,-z,now",
- "-z,relro,-z,now",
+ "-z",
) + (
[
"-undefined",