[HACKERS] building libpq.a static library

2017-07-12 Thread Jeroen Ooms
I maintain static libraries for libpq for the R programming language (we need static linking to ship with the binary packages). Unfortunately currently the standard postgres makefile only generates a shared library for libpq, not a static one. In order to make a static library I always manually

Re: [HACKERS] building libpq.a static library

2017-07-13 Thread Jeroen Ooms
On Thu, Jul 13, 2017 at 4:58 AM, Craig Ringer wrote: > You shouldn't ever need static libraries on Windows, though. Because it > searches the CWD first on its linker search path, you can just drop > libpq.dll in the same directory as your binary/library and link to the stub

Re: [HACKERS] building libpq.a static library

2017-07-12 Thread Jeroen Ooms
On Wed, Jul 12, 2017 at 5:11 PM, Tom Lane <t...@sss.pgh.pa.us> wrote: > Jeroen Ooms <jer...@berkeley.edu> writes: >> I maintain static libraries for libpq for the R programming language >> (we need static linking to ship with the binary packages). > > How do y