From: Tom Lane <tgl@sss.pgh.pa.us>
To: Andres Freund <andres@anarazel.de>
Cc: Peter Eisentraut <peter.eisentraut@enterprisedb.com>
Cc: pgsql-hackers <pgsql-hackers@postgresql.org>
Subject: Re: Strip -mmacosx-version-min options from plperl build
Date: Tue, 23 Aug 2022 22:49:25 -0400
Message-ID: <878087.1661309365@sss.pgh.pa.us> (raw)
In-Reply-To: <20220824021150.jfkqlp75d7otyu7g@awork3.anarazel.de>
References: <8c4fcb72-2574-ff7c-4c25-1f032d4a2a57@enterprisedb.com>
<2369869.1660830828@sss.pgh.pa.us>
<9518842c-6844-0c99-85ec-ec43fba3115f@enterprisedb.com>
<3050653.1660917635@sss.pgh.pa.us>
<20220820204401.vrf5kejih6jofvqb@awork3.anarazel.de>
<3820211.1661028811@sss.pgh.pa.us>
<20220820214447.enuetjm5cv75wwpd@awork3.anarazel.de>
<3c567776-e16a-0b9f-afd0-711e673f4fb3@enterprisedb.com>
<20220822153740.oufnmsx5iavqibzv@awork3.anarazel.de>
<20220824021150.jfkqlp75d7otyu7g@awork3.anarazel.de>
Andres Freund <andres@anarazel.de> writes:
> FWIW, while trying to mirror the same logic in meson I learned that the new
> logic removes the rpath setting from the parameters on at least netbsd and
> suse. We'll add them back - unless --disable-rpath is used.
Hmm ... on my shiny new netbsd buildfarm animal, I see:
$ perl -MConfig -e 'print "$Config{ccdlflags}"'
-Wl,-E -Wl,-R/usr/pkg/lib/perl5/5.34.0/powerpc-netbsd-thread-multi/CORE
$ perl -MConfig -e 'print "$Config{ldflags}"'
-pthread -L/usr/lib -Wl,-R/usr/lib -Wl,-R/usr/pkg/lib -L/usr/pkg/lib
$ perl -MExtUtils::Embed -e ldopts
-Wl,-E -Wl,-R/usr/pkg/lib/perl5/5.34.0/powerpc-netbsd-thread-multi/CORE -pthread -L/usr/lib -Wl,-R/usr/lib -Wl,-R/usr/pkg/lib -L/usr/pkg/lib -L/usr/pkg/lib/perl5/5.34.0/powerpc-netbsd-thread-multi/CORE -lperl -lm -lcrypt -lpthread
So we were *already* stripping the rpath for where libperl.so is,
and now we also strip -L and rpath for /usr/lib (which surely is
pointless) and for /usr/pkg/lib (which in point of fact have to
be added to the PG configuration options anyway). These Perl
options seem a bit inconsistent ...
> I think some
> distributions build with --disable-rpath. Not sure if worth worrying about.
I believe that policy only makes sense for distros that expect every
shared library to appear in /usr/lib (or /usr/lib64 perhaps). Red Hat
for one does that --- but they follow through: libperl.so is there.
I think we're good here, at least till somebody points out a platform
where we aren't.
regards, tom lane
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-hackers@postgresql.org
Cc: tgl@sss.pgh.pa.us, andres@anarazel.de, peter.eisentraut@enterprisedb.com
Subject: Re: Strip -mmacosx-version-min options from plperl build
In-Reply-To: <878087.1661309365@sss.pgh.pa.us>
References: <8c4fcb72-2574-ff7c-4c25-1f032d4a2a57@enterprisedb.com> <2369869.1660830828@sss.pgh.pa.us> <9518842c-6844-0c99-85ec-ec43fba3115f@enterprisedb.com> <3050653.1660917635@sss.pgh.pa.us> <20220820204401.vrf5kejih6jofvqb@awork3.anarazel.de> <3820211.1661028811@sss.pgh.pa.us> <20220820214447.enuetjm5cv75wwpd@awork3.anarazel.de> <3c567776-e16a-0b9f-afd0-711e673f4fb3@enterprisedb.com> <20220822153740.oufnmsx5iavqibzv@awork3.anarazel.de> <20220824021150.jfkqlp75d7otyu7g@awork3.anarazel.de> <878087.1661309365@sss.pgh.pa.us>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox