Set the -pthread compiler flag when pthreads is used.
Apparently, setting -lpthread is not enough to convince gcc to actually link a thread library, so if we are using pthreads, set the -pthread flag as well. It fixes the gcc situation and doesn't have any adverse effects for clang either.main
parent
57856fb507
commit
8b5e85a95c
Loading…
Reference in New Issue