pgsql-server: Be more aggressive about adding flags to thread compiles.

From: momjian(at)svr1(dot)postgresql(dot)org (Bruce Momjian)
To: pgsql-committers(at)postgresql(dot)org
Subject: pgsql-server: Be more aggressive about adding flags to thread compiles.
Date: 2004-08-12 16:39:51
Message-ID: 20040812163951.76A925E37D0@svr1.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

Log Message:
-----------
Be more aggressive about adding flags to thread compiles. The configure
test only tests for building a binary, not building a shared library.

On Linux, you can build a binary with -pthread, but you can't build a
binary that uses a threaded shared library unless you also use -pthread
when building the binary, or adding -lpthread to the shared library
build. This patch has the effect of doing the later by adding both
-pthread and -lpthread when building libpq.

Modified Files:
--------------
pgsql-server/config:
acx_pthread.m4 (r1.3 -> r1.4)
(http://developer.postgresql.org/cvsweb.cgi/pgsql-server/config/acx_pthread.m4.diff?r1=1.3&r2=1.4)

Browse pgsql-committers by date

  From Date Subject
Next Message Bruce Momjian 2004-08-12 18:32:57 pgsql-server: Add make_native_path() because Win32 COPY is an internal
Previous Message Bruce Momjian 2004-08-12 14:58:37 pgsql-server: Minor style cleanup of thread test script.