At least on FreeBSD, gcc42 can't create
position-independent executables when threads are involved.
Expand our configure check to use some pthread code so it fails
instead of succeeds.
Fixes #2037 and probably #2055
test_flags() {
# test for relocation
- if [ `uname -s` = 'SunOS' -o `uname -s` = 'FreeBSD' ]; then
+ if [ `uname -s` = 'SunOS' ]; then
return
fi
src=conftest.cc
cat >$src <<EOF
+#include <pthread.h>
+
+__thread unsigned int t_id;
int
main ()
{
+ t_id = 1;
return 0;
}
EOF