Fix thread flags on Solaris
authorRyan Dahl <ry@tinyclouds.org>
Wed, 31 Mar 2010 20:36:20 +0000 (13:36 -0700)
committerRyan Dahl <ry@tinyclouds.org>
Wed, 31 Mar 2010 20:44:36 +0000 (13:44 -0700)
commit4279725d790b5b23e89e4ff90cff2c03be21635d
tree55e40892c4f3691d1f2574f9b2fea97538b7c751
parentd52f63d9b29446b26ec831acd8ec6da9147896e5
Fix thread flags on Solaris

Also on other platforms use -pthread for compiling commands not just
linking because I noticed in the gcc(1) man page

  -pthread
      Adds support for multithreading with the pthreads library. This
      option sets flags for both the preprocessor and linker.

Removing the errno check in deps/coupling because it was a hack
(e165859c2ebc08b3a00adf4d99003c50ae9936ab) added to fix stdio problems.
Without adding -threads, errno is not thread local, and coupling was not
correctly checking the errno. It appears -mt does nothing to gcc/solaris.
deps/coupling/coupling.c
wscript