This is the mail archive of the cygwin@cygwin.com mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: initdb failure - postgres hangs with 100% CPU


Jason Tishler wrote:


> pq.dll is the "shared" (i.e., DLL) library, libpq.a is the import
> library to which client code link.


Jason, I recommend that postgres build the import library with a 
".dll.a" extention, rather than ".a".  This requires no changes when 
linking client code; ld will interpret "-lpq" to mean "libpq.dll.a" 
FIRST, and then later look for "libpq.a" iff .dll.a is not found.

What you're doing now is fine; it works now and will continue to work -- 
but convention sez ".a" = static lib, ".dll.a" = import lib.  (yah, I 
know that the mswindows import libs in the cygwin and mingw packages use 
".a" ....)

--Chuck


--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Bug reporting:         http://cygwin.com/bugs.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]