Commit a26740dd authored by glider@chromium.org's avatar glider@chromium.org

Pass -lrt when linking AddressSanitizer, ThreadSanitizer, MemorySanitizer...

Pass -lrt when linking AddressSanitizer, ThreadSanitizer, MemorySanitizer binaries on Linux only (was: AddressSanitizer, everywhere)

BUG=234010
TBR=hans

Review URL: https://codereview.chromium.org/16018009

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@202537 0039d316-1c4b-4281-b951-d872f2087c98
parent 2cfcba50
...@@ -3131,6 +3131,12 @@ ...@@ -3131,6 +3131,12 @@
'-Wl,--as-needed', '-Wl,--as-needed',
], ],
}], }],
['_toolset=="target" and OS=="linux"', {
'ldflags': [
# http://crbug.com/234010.
'-lrt',
],
}],
], ],
}], }],
['asan==1', { ['asan==1', {
...@@ -3142,8 +3148,6 @@ ...@@ -3142,8 +3148,6 @@
], ],
'ldflags': [ 'ldflags': [
'-fsanitize=address', '-fsanitize=address',
# http://crbug.com/234010.
'-lrt',
], ],
'defines': [ 'defines': [
'ADDRESS_SANITIZER', 'ADDRESS_SANITIZER',
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment