PG Bug reporting form <noreply@postgresql.org> writes:
> Static linking openldap results in failure with the following error:
> libpq.so.5.16: U pthread_exit@GLIBC_2.2.5
> libpq must not be calling any function which invokes exit
[ shrug... ] So don't do that. Statically linking libraries from
different sources is a pretty evil idea anyway, because it makes
package updates much harder.
Having said that, if you're hacking the makefiles enough to make
the link static, you can surely find and remove that check. Just
don't expect us to take a patch to that effect.
regards, tom lane