Don't link pthread on QNX

On QNX, pthread is part of libc [1]. There's no separate pthread library
to link.

[1] https://www.qnx.com/developers/docs/7.1/index.html#com.qnx.doc.neutrino.lib_ref/topic/p/pthread_create.html
This commit is contained in:
Manuel Binna
2021-06-25 06:35:18 +02:00
parent 355d57d90d
commit 4281d2149c
3 changed files with 9 additions and 0 deletions

View File

@@ -41,6 +41,7 @@ cc_test(
size = "small",
srcs = glob(include = ["gmock-*.cc"]),
linkopts = select({
"//:qnx": [],
"//:windows": [],
"//conditions:default": ["-pthread"],
}),