apr-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Nick Kew <...@apache.org>
Subject Re: Building pgsql DBD driver
Date Wed, 18 Jun 2008 10:52:38 GMT
On Wed, 18 Jun 2008 16:08:36 +0530
Seema Alevoor <Seema.Alevoor@Sun.COM> wrote:

> Hi,
> 
> APR-UTIL's configure script sets 'LDADD_dbd_pgsql' to
>        "$pgsql_LDFLAGS -lpq $pgsql_LIBS" (pgsql_LIBS = `pg_config
> --libs`) 
> whereas PostgresSQL README (src/port/README) says
>     "For applications, we use -lpgport before -lpq, so the static
> files from libpgport are linked first."
> 
> In that case, shouldn't it be set to "$pgsql_LDFLAGS $pgsql_LIBS
> -lpq" ?

Makes sense to me.

The current ordering is introduced in r658532, and it seems that
other DBD drivers are potentially affected if they have any
ordering issues.

Any reason we shouldn't just switch the ordering?

-- 
Nick Kew

Application Development with Apache - the Apache Modules Book
http://www.apachetutor.org/

Mime
View raw message