Link libpthread and libdl when importing Glibc module.

libSystem on OS X (and therefore the Darwin module) includes all the functions
that are present in libpthread/libld on Linux. So go ahead and pull those in for
parity.

<rdar://problem/23207607>
This commit is contained in:
Chris Willmore
2015-11-06 14:06:23 -07:00
parent 97166a313c
commit ab1f21ab8a

View File

@@ -19,6 +19,9 @@
/// It's not named just Glibc so that it doesn't conflict in the event of a
/// future official glibc modulemap.
module SwiftGlibc [system] {
link "pthread"
link "dl"
// C standard library
module C {
module complex {