krytarowski added a comment. `-pthreads` defines additional OS specific flags like `_REENTRANT` or `_PTHREADS` and this is the form that should be used. Repository: rL LLVM https://reviews.llvm.org/D43168