[PATCH] D21478: [build] Link main executable with libpthread

Artem Belevich via llvm-commits llvm-commits at lists.llvm.org
Mon Jun 20 15:28:08 PDT 2016


tra added a comment.

Argh. CMAKE_THREAD_LIBS_INIT contains library name prefixed with -l. It's fine to use with target_link_libraries because it checks for prefixed names, but results in "-l-lpthread" because in some places we assume that PTHREAD_LIB is an unprefixed library name. 
I'll update the patch once I know how to deal with this.


http://reviews.llvm.org/D21478





More information about the llvm-commits mailing list