apr-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Bojan Smojver <bo...@rexursive.com>
Subject Re: dbd pgsql autotools patch
Date Tue, 20 May 2008 20:59:53 GMT
On Tue, 2008-05-20 at 06:55 -0400, Bob Rossi wrote:

> OK, I can try this, however, this patch still doesn't work on windows. I
> get link errors on windows because the the libs aren't linked in.
> 
> $ ./pg_config --libs
> -lpgport -lm -lSecur32 -lws2_32 -lshfolder
> 
> $ ./pg_config --libdir
> C:/msys/1.0/.../POSTGR~1/POSTGR~1.1/lib
> 
> So, if the --libs is not provided on windows, then it doesn't link.
> Sorry to be such a pain, I don't know what else we could do here.
> 
> This is from the pgsql-bugs list:
> 
>   Well, if you are linking statically, you might as well refer to
>   pg_config --libs, or any other infinite list of libraries you can dream of.
>   The main reason why this is discouraged for dynamic linking is that this
>   creates unnecessary package dependencies.  But for static linking, it sounds
>   OK to me.  I guess we have never really bothered to carefully specify the
>   static case.

OK, not a problem. We'll whack libs in there too.

-- 
Bojan


Mime
View raw message