Index: build/common.gypi |
diff --git a/build/common.gypi b/build/common.gypi |
index 05f0f241061a33f7cb067f38c7b832456ab1d941..5635dfa20a33be587aa5823b1086f9a0fc1cb88b 100644 |
--- a/build/common.gypi |
+++ b/build/common.gypi |
@@ -3488,19 +3488,17 @@ |
}], |
], |
}], |
+ ['component=="shared_library"', { |
+ # See crbug.com/112389. Also required for BACKTRACE() to work. |
+ # TODO(glider): replace with --dynamic-list or something |
+ 'ldflags': ['-rdynamic'], |
+ }], |
['linux_use_heapchecker==1', { |
'variables': {'linux_use_tcmalloc%': 1}, |
'defines': [ |
'USE_HEAPCHECKER', |
'MEMORY_TOOL_REPLACES_ALLOCATOR', |
], |
- 'conditions': [ |
- ['component=="shared_library"', { |
- # See crbug.com/112389 |
- # TODO(glider): replace with --dynamic-list or something |
- 'ldflags': ['-rdynamic'], |
- }], |
- ], |
}], |
['linux_use_tcmalloc==0 and android_use_tcmalloc==0', { |
'defines': ['NO_TCMALLOC'], |