Index: build/config/compiler/BUILD.gn |
diff --git a/build/config/compiler/BUILD.gn b/build/config/compiler/BUILD.gn |
index b5c4a9025fcccab1a8e8c553e01d611782393d26..d929781d2564ee22a1200014167dd356ecaf7525 100644 |
--- a/build/config/compiler/BUILD.gn |
+++ b/build/config/compiler/BUILD.gn |
@@ -301,8 +301,10 @@ config("compiler") { |
"-Wl,-z,noexecstack", |
"-Wl,-z,now", |
"-Wl,-z,relro", |
- "-Wl,-z,defs", |
] |
+ if (!using_sanitizer) { |
+ ldflags += [ "-Wl,-z,defs" ] |
+ } |
} |
# Linux-specific compiler flags setup. |