Re: static libpq (and other libraries) overwritten on aix

From: Noah Misch <noah(at)leadboat(dot)com>
To: Andres Freund <andres(at)anarazel(dot)de>
Cc: pgsql-hackers(at)postgresql(dot)org, robertmhaas(at)gmail(dot)com
Subject: Re: static libpq (and other libraries) overwritten on aix
Date: 2022-08-18 04:59:29
Message-ID: 20220818045929.GB410601@rfd.leadboat.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

The AIX sections of Makefile.shlib misuse the terms "static" and "shared".
Imagine s/static library/library ending in .a/ and s/shared library/library
ending in .so/. That yields an accurate description of the makefile rules.

On Wed, Aug 17, 2022 at 12:01:54PM -0700, Andres Freund wrote:
> Two questions:
> 1) Do we continue building static libraries for libpq etc?

Essentially, we don't build static libpq today, and we should continue not
building it. (The first-built libpq.a is static, but that file is an
implementation detail of the makefile rules. The surviving libpq.a is a
normal AIX shared library.)

> 2) Do we care about static libraries not suriving on AIX?

No.

> There could also be
> a race in the buildrules leading to sometimes static libs sometimes shared
> libs winning, I think.

Not since commit e8564ef, to my knowledge.

Along the lines of Robert's comment, it could be a nice code beautification to
use a different suffix for the short-lived .a file. Perhaps _so_inputs.a.

I found this useful years ago:
https://web.archive.org/web/20151003130212/http://seriousbirder.com/blogs/aix-shared-and-static-libraries-explained/

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Justin Pryzby 2022-08-18 05:16:37 Re: shadow variables - pg15 edition
Previous Message John Naylor 2022-08-18 04:14:34 Re: [PATCH] Clarify the comments about varlena header encoding