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-25 04:14:18
Message-ID: 20220825041418.GA748995@rfd.leadboat.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

On Wed, Aug 24, 2022 at 08:43:04PM -0700, Andres Freund wrote:
> On 2022-08-20 10:42:13 -0700, Andres Freund wrote:
> > 0004 aix: when building with gcc, tell gcc we're building a shared library
> >
> > That's the gcc -shared issue I explained in the email I'm replying to.
> >
> > We should probably consider building executables with -shared-libgcc too,
> > that shrinks them a decent amount (e.g. 1371684 -> 1126765 for psql). But
> > I've not done that here.
> >
> >
> > 0005 aix: No need to use mkldexport when we want to export all symbols
> >
> > This makes the building of shared libraries a lot more similar to other
> > platforms. Export files are only used when an exports.txt is present and
> > there's no more intermediary static libraries.
> >
> >
> > 0006 configure: Expand -fvisibility checks to more compilers, add -qvisibility
> >
> > This isn't strictly speaking part of the same "thread" of work, but I don't
> > want to touch aix more often than I have too... I'll post it in the other
> > thread too.
> >
> > I did just test that this passes at least some tests on aix with xlc and
> > solaris with sunpro.
>
> Any comments here?

I don't know much about them, but they sound like the sort of thing that can't
cause subtle bugs. If they build and test the first time, they're probably
valid. You may as well push them.

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Bharath Rupireddy 2022-08-25 04:42:00 Re: add checkpoint stats of snapshot and mapping files of pg_logical dir
Previous Message Andres Freund 2022-08-25 03:43:04 Re: static libpq (and other libraries) overwritten on aix