[llvm-commits] [PATCH] Test-suite: Link 7zip against pthread
Alastair Murray
alastairmurray42 at gmail.com
Thu Dec 27 14:24:21 PST 2012
Hi Michael, all,
make TEST=simple report fails on 7zip for me with undefined reference to
`pthread_create' etc.
I'm surprised that this isn't broken for everyone (on Linux at least),
so it is possible this is something to do with my machine, but I don't
think so.
Adding -pthread to LDFLAGS fixes it for me.
Trivial patch is attached. Tested on Linux.
By the way: I was surprised that a benchmark was using threading. So I
tried defining _7ZIP_ST (single-threading) and fixed a compile issue
that arose, but it was still calling pthread functions.
Regards,
Alastair Murray.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 7zip_pthread.patch
Type: text/x-patch
Size: 487 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20121227/04f84039/attachment.bin>
More information about the llvm-commits
mailing list