Skip site navigation (1) Skip section navigation (2)

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 (view raw or flat)
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)

pgsql-committers by date

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

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group