fix heapchecker build (allocator linking)
I don't fully understand -rdynamic (http://gcc.gnu.org/onlinedocs/gcc/Link-Options.html) but it seems like that's why the heapchecker build works (it turns -rdynamic on in build/common.gypi), so this seems like a reasonable workaround for the test targets. (?)
[email protected]
BUG=263316
Review URL: https://chromiumcodereview.appspot.com/19862006
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@213213 0039d316-1c4b-4281-b951-d872f2087c98
diff --git a/components/components_tests.gypi b/components/components_tests.gypi
index 2de146b..b8e56000 100644
--- a/components/components_tests.gypi
+++ b/components/components_tests.gypi
@@ -79,6 +79,14 @@
'../sync/sync.gyp:sync',
],
}],
+ ['OS=="linux" and component=="shared_library" and linux_use_tcmalloc==1', {
+ 'dependencies': [
+ '<(DEPTH)/base/allocator/allocator.gyp:allocator',
+ ],
+ 'link_settings': {
+ 'ldflags': ['-rdynamic'],
+ },
+ }],
],
# TODO(jschuh): crbug.com/167187 fix size_t to int truncations.
'msvs_disabled_warnings': [4267, ],