From: | Cyberman Wu <cypher(dot)w(at)gmail(dot)com> |
---|---|
To: | pgsql-general(at)postgresql(dot)org |
Subject: | Cross-compiling problem with pthread test |
Date: | 2011-05-26 09:44:33 |
Message-ID: | BANLkTi=XsLU7P=_5R-QLmyH306Do+zjXEw@mail.gmail.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-general |
When I try to cross-compiling PostgreSQL for TILEPro, it can't figure
out libpthread:
checking for the pthreads library -lpthreads... no
checking whether pthreads work without any flags... no
checking whether pthreads work with -Kthread... no
checking whether pthreads work with -kthread... no
checking for the pthreads library -llthread... no
checking whether pthreads work with -pthread... no
checking whether pthreads work with -pthreads... no
checking whether pthreads work with -mthreads... no
checking for the pthreads library -lpthread... no
checking whether pthreads work with --thread-safe... no
checking whether pthreads work with -mt... no
And link will failed. I've tried to modify the generated
src/Makefile.global to add '-lpthread' for PTHREAD_LIBS, and it did
work. But I've to modify it every time when I want to change some
configurations. Is there any way to make scripts resolve this
automatically, or manually with some configuration parameters on
command line?
By the way, src/include/storage/s_lock.h said that if I disable
spinlock it will be 'MUCH MUCH slower', is there any performance data
on that?
--
Cyberman Wu
<http://www.meganovo.com>
From | Date | Subject | |
---|---|---|---|
Next Message | Per-Olov Esgard | 2011-05-26 12:26:49 | Is there any problem with pg_notify and memory consumption? |
Previous Message | Alexander Farber | 2011-05-26 09:41:22 | Re: PostgreSQL 8.4.8 bringing my website down every evening |