Fix linking pthread in tests on FreeBSD

git-svn-id: https://llvm.org/svn/llvm-project/libcxx/trunk@227240 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Eric Fiselier 2015-01-27 20:43:53 +00:00
parent a7dcd3a3e1
commit e1a6c17251

View File

@ -444,7 +444,7 @@ class Configuration(object):
else:
self.cxx.link_flags += ['-lgcc_s']
elif sys.platform.startswith('freebsd'):
self.cxx.link_flags += ['-lc', '-lm', '-pthread', '-lgcc_s']
self.cxx.link_flags += ['-lc', '-lm', '-lpthread', '-lgcc_s']
else:
self.lit_config.fatal("unrecognized system: %r" % sys.platform)