Re: thread testcase compile issue (question)

Michael Chastain
2004-08-06T06:09:09Z

Manoj Iyer <manjo@austin.ibm.com> wrote:
> When I execute tests under gdb.threads/ directory for instance killed.exp,
> I see 2 complies of the same testcase, the first one gets a linker error
> /usr/bin/ld: cannot find -lpthreads but the second time it works with no
> errors. Anyone has any idea why???

This is normal.

Different systems keep the thread library in different places.
So the test suite tries three different "-l" options until it finds
one that works.

The specific code is in: testsuite/lib/gdb.exp, proc gdb_compile_pthreads.

Michael C