Add more support for xBSD type OS.

Use the same code for FreeBSD, NetBSD, OpenBSD and DragonFly BSD.
This commit is contained in:
Kai Nacke 2016-01-19 22:04:14 +01:00
parent f94c34ea33
commit 8df1f7ec1a
4 changed files with 34 additions and 7 deletions

View file

@ -176,6 +176,8 @@ static int linkObjToBinaryGcc(bool sharedLib, bool fullyStatic) {
// fallthrough
case llvm::Triple::FreeBSD:
case llvm::Triple::NetBSD:
case llvm::Triple::OpenBSD:
case llvm::Triple::DragonFly:
addSoname = true;
args.push_back("-lpthread");
args.push_back("-lm");