[patch] fix thread test cases for solaris.

Andreas Tobler andreast-list@fgznet.ch
Sat Jan 10 21:23:00 GMT 2009


Hi all,

The below test cases fail under sparc-solaris10, undefined reference to 
sched_yield or nanosleep. Those are part of librt.

This simple patch makes these test cases compile and run under 
sparc-solaris10. (Not supported under solaris8)

Ok for trunk?

Thanks,
Andreas

2009-01-10  Andreas Tobler  <a.tobler@schweiz.org>

	* testsuite/30_threads/thread/this_thread/2.cc: Add -lrt to
	dg-options for solaris targets.
	* testsuite/30_threads/thread/this_thread/3.cc: Likewise.
	* testsuite/30_threads/thread/this_thread/4.cc: Likewise.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: 30_threads.diff
Type: text/x-diff
Size: 2289 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20090110/9c6a513b/attachment.bin>


More information about the Gcc-patches mailing list