On Mon, Apr 15, 2013 at 7:23 AM, Pedro Alves wrote: > Super nit, but do we need "with_" ? We don't say "with_debug" or > "with_nowarnings" either. I'd suggest just "pthread". Singular, as > GNU uses -pthread / -lpthread. Done. Please find the patch attached. 2013-04-15 Siva Chandra Reddy Add option to link testcases with Pthreads library when using 'prepare_for_testing' in tests. testsuite/ * lib/gdb.exp (build_executable_from_specs): Use gdb_compile_pthreads to compile if option "pthreads" is specified.