Skip to content

Commit 4e190ba

Browse files
hlopkolaurentlb
authored andcommitted
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
1 parent 94b7830 commit 4e190ba

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tools/cpp/unix_cc_configure.bzl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -275,7 +275,7 @@ def _crosstool_content(repository_ctx, cc, cpu_value, darwin):
275275
repository_ctx,
276276
cc,
277277
"-Wl,-z,relro,-z,now",
278-
"-z,relro,-z,now",
278+
"-z",
279279
) + (
280280
[
281281
"-undefined",

0 commit comments

Comments
 (0)