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

From: Sandro Mani <manisandro(at)gmail(dot)com>
To: PostgreSQL Hackers <pgsql-hackers(at)lists(dot)postgresql(dot)org>
Subject: [Patch] Mingw: Fix import library extension, build actual static libraries
Date: 2019-03-07 14:23:50
Message-ID: 2a6c418e-373b-8466-fcb8-ce729aab255f@gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

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 downstream workarounds for this, see i.e. [1]
and [2]. The attached patch 0001-Fix-import-library-extension.patch
addresses this.

Related, no actual static libraries are produced alongside the
respective dlls. The attached patch 0002-Build-static-libraries.patch
addresses this, in a similar fashion as is already done for the AIX case
in Makefile.shlib.

Thanks Sandro

[1]
https://src.fedoraproject.org/rpms/mingw-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

Attachment Content-Type Size
0001-Fix-import-library-extension.patch text/x-patch 4.6 KB
0002-Build-static-libraries.patch text/x-patch 1.1 KB

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Robert Haas 2019-03-07 14:34:24 Re: Protect syscache from bloating with negative cache entries
Previous Message Michael Paquier 2019-03-07 14:11:16 Re: pgsql: Removed unused variable, openLogOff.