Update how libc++/libc++abi link the tests. Follow up on r255559.

git-svn-id: https://llvm.org/svn/llvm-project/libcxx/trunk@255560 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Eric Fiselier 2015-12-14 22:24:19 +00:00
parent 90e328c271
commit ed99798624

View File

@ -572,15 +572,16 @@ class Configuration(object):
if target_platform == 'darwin':
self.cxx.link_flags += ['-lSystem']
elif target_platform == 'linux':
self.cxx.link_flags += ['-lm']
if not llvm_unwinder:
self.cxx.link_flags += ['-lgcc_eh']
self.cxx.link_flags += ['-lc', '-lm']
self.cxx.link_flags += ['-lgcc_s', '-lgcc']
if enable_threads:
self.cxx.link_flags += ['-lpthread']
self.cxx.link_flags += ['-lc']
if llvm_unwinder:
self.cxx.link_flags += ['-lunwind', '-ldl']
else:
self.cxx.link_flags += ['-lgcc_s']
self.cxx.link_flags += ['-lgcc_s', '-lgcc']
elif target_platform.startswith('freebsd'):
self.cxx.link_flags += ['-lc', '-lm', '-lpthread', '-lgcc_s', '-lcxxrt']
else: