Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1oQgSZ-0001Mo-It for pgsql-hackers@arkaria.postgresql.org; Wed, 24 Aug 2022 02:49:39 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1oQgSW-0001ay-9i for pgsql-hackers@arkaria.postgresql.org; Wed, 24 Aug 2022 02:49:36 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1oQgSW-0001ap-0f for pgsql-hackers@lists.postgresql.org; Wed, 24 Aug 2022 02:49:36 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by magus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1oQgSR-0007OI-4u for pgsql-hackers@postgresql.org; Wed, 24 Aug 2022 02:49:32 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.15.2/8.15.2) with ESMTP id 27O2nPIn878088; Tue, 23 Aug 2022 22:49:26 -0400 From: Tom Lane To: Andres Freund cc: Peter Eisentraut , pgsql-hackers Subject: Re: Strip -mmacosx-version-min options from plperl build 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> Comments: In-reply-to Andres Freund message dated "Tue, 23 Aug 2022 19:11:50 -0700" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <878086.1661309365.1@sss.pgh.pa.us> Content-Transfer-Encoding: quoted-printable Date: Tue, 23 Aug 2022 22:49:25 -0400 Message-ID: <878087.1661309365@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk Andres Freund 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 a= nd > 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/u= sr/pkg/lib/perl5/5.34.0/powerpc-netbsd-thread-multi/CORE -lperl -lm -lcryp= t -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 abo= ut. 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