The lldCommon library requires pthreads linkage.
In case of building LLVM_SHARED_LIBS we need to link this explicitly.
Fixes issue from mailing list, posted from dean.berris@gmail.com.
Differential D38999
Link LLVM_PTHREAD_LIB to lldCommon Vulder on Oct 17 2017, 6:03 AM. Authored by
Details
Diff Detail Event TimelineComment Actions Small remark: One could also link LLVM_PTHREAD_LIB always, to indicate the dependence to pthread.
Comment Actions The same change was submitted in https://reviews.llvm.org/rL315988 by Alexander Richardson, so we don't need to submit this patch anymore. |
Well, why can't you just add ${LLVM_PTHREAD_LIB} here?