[llvm-commits] [PATCH] Test-suite: Link 7zip against pthread
Michael Gottesman
mgottesman at apple.com
Thu Dec 27 16:15:08 PST 2012
I jerry rigged it so that it uses only 1 thread. It might still use pthreads as you said.
I had several versions of it so perhaps the hack got lost in the muddle.
[in which case thanks = )]
Ill look at this later today. (I am abroad).
On Dec 28, 2012, at 12:24 AM, Alastair Murray <alastairmurray42 at gmail.com> wrote:
> 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.
> <7zip_pthread.patch>
More information about the llvm-commits
mailing list