configure.ac: use $LIBS not $CFLAGS when testing -lpthread
commitbac2c5bf1a74fbdb901c6c939e6ec1bb085749f8
authorRainer M. Canavan <git@canavan.de>
Fri, 6 Nov 2015 01:11:37 +0000 (6 02:11 +0100)
committerJunio C Hamano <gitster@pobox.com>
Fri, 6 Nov 2015 17:41:08 +0000 (6 09:41 -0800)
tree9d56ce2a197554de0b883aa903f9001539613c52
parent282616c72d1d08a77ca4fe1186cb708c38408d87
configure.ac: use $LIBS not $CFLAGS when testing -lpthread

Some linkers, namely the one on IRIX are rather strict concerning
the order or arguments for symbol resolution, i.e. no libraries
listed before objects or other libraries on the command line are
considered for symbol resolution.  Therefore, -lpthread can't work
if it's put in CFLAGS, because it will not be considered for
resolving pthread_key_create in conftest.o. Use $LIBS instead.

Signed-off-by: Rainer Canavan <git@canavan.de>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
configure.ac