This is the mail archive of the gdb@sources.redhat.com mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: thread testcase compile issue (question)


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]