Makefile: -lpthread may still be necessary when libc has only pthread stubs
authorGary V. Vaughan <git@mlists.thewrittenword.com>
Fri, 14 May 2010 09:31:34 +0000 (09:31 +0000)
committerJunio C Hamano <gitster@pobox.com>
Mon, 31 May 2010 23:59:26 +0000 (16:59 -0700)
commit48793cf46a286a21df420fdd7fc4b0c91c60a0c8
tree9827e66440047b313e5b17bb00d3fc799f1e17ee
parent66dbfd55e38128db02eb340fcd89f54b734d4c6e
Makefile: -lpthread may still be necessary when libc has only pthread stubs

Without this patch, systems that provide stubs for pthread functions
in libc, but which still require libpthread for full the pthread
implementation are not detected correctly.

Also, some systems require -pthread in CFLAGS for each compilation
unit for a successful link of an mt binary, which is also addressed by
this patch.

Signed-off-by: Gary V. Vaughan <gary@thewrittenword.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Makefile
config.mak.in
configure.ac