[PATCH] D43279: Add Xray instrumentation compile-time/link-time support to FreeBSD
Kamil Rytarowski via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Wed Feb 14 09:07:10 PST 2018
krytarowski added inline comments.
================
Comment at: FreeBSD.cpp:139
+ CmdArgs.push_back("--no-as-needed");
+ CmdArgs.push_back("-lpthread");
+ CmdArgs.push_back("-lrt");
----------------
devnexen wrote:
> krytarowski wrote:
> > `-pthread`?
> Did not seem needed maybe it s different for NetBSD ?
```
-pthread
Adds support for multithreading with the pthreads library. This
option sets flags for both the preprocessor and linker.
```
>From gcc(1). `-lpthread` looks like an alias, but `-pthread` is preferred. A system library does not need to be called `libpthread.so` or so, and it's not named this way on FreeBSD.
Repository:
rC Clang
https://reviews.llvm.org/D43279
More information about the cfe-commits
mailing list