[Patch] Add missing libraries to Libs.private of libpq.pc

2020-04-08 Thread Sandro Mani
Hello The following patch, which we added to build mingw-postgresql on Fedora, adds some missing libraries to Libs.private of libpq.pc, discovered when attempting to statically link with libpq: -lz: is required by -lcrypto -liconv: is required by -lintl (though possibly depends on whether ge

[Patch] Use internal pthreads reimplementation only when building with MSVC

2020-04-08 Thread Sandro Mani
Hi The following patch, which we added to build mingw-postgresql on Fedora, makes the internal minimal pthreads reimplementation only used when building with MSVC, as on MINGW it causes symbol collisions with the symbols provided my winpthreads. Thanks Sandro diff -rupN postgresql-11.5/src

Re: [Patch] Mingw: Fix import library extension, build actual static libraries

2019-04-02 Thread Sandro Mani
Any chance these patches could be considered? Thanks Sandro On Thu, Mar 7, 2019 at 3:23 PM Sandro Mani wrote: > Currently building postgresql for Win32 with a mingw toolchain produces > import libraries with *.a extension, whereas the extension should be > *.dll.a. There are various d

[Patch] Mingw: Fix import library extension, build actual static libraries

2019-03-07 Thread Sandro Mani
-postgresql/blob/master/f/mingw-postgresql.spec#_144 [2] https://aur.archlinux.org/cgit/aur.git/tree/0001-Use-.dll.a-as-extension-for-import-libraries.patch?h=mingw-w64-postgresql >From 9cf2d3076750f0214c448aaabcbcf7ba5aed6594 Mon Sep 17 00:00:00 2001 From: Sandro Mani Date: Thu, 7 Mar 2019 14