]> granicus.if.org Git - postgresql/commit
Move pthread-tests earlier in the autoconf script.
authorHeikki Linnakangas <heikki.linnakangas@iki.fi>
Wed, 8 Jul 2015 21:05:45 +0000 (00:05 +0300)
committerHeikki Linnakangas <heikki.linnakangas@iki.fi>
Wed, 8 Jul 2015 21:11:54 +0000 (00:11 +0300)
commit080c4dab3d9575449b81604051b160597cfd55c3
treef4fa8d779c497eadbc5aad31b0827ce9184560b3
parentce0da6261004ac15f01c21d8b94f11af7a098243
Move pthread-tests earlier in the autoconf script.

On some Linux systems, "-lrt" exposed pthread-functions, so that linking
with -lrt was seemingly enough to make a program that uses pthreads to
work. However, when linking libpq, the dependency to libpthread was not
marked correctly, so that when an executable was linked with -lpq but
without -pthread, you got errors about undefined pthread_* functions from
libpq.

To fix, test for the flags required to use pthreads earlier in the autoconf
script, before checking any other libraries.

This should fix the failure on buildfarm member shearwater. gharial is also
failing; hopefully this fixes that too although the failure looks somewhat
different.
configure
configure.in