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 1oQ8Tq-0004dw-NC for pgsql-hackers@arkaria.postgresql.org; Mon, 22 Aug 2022 14:32:42 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1oQ8Tp-0002P7-JH for pgsql-hackers@arkaria.postgresql.org; Mon, 22 Aug 2022 14:32:41 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1oQ8Tp-0002Ms-8o for pgsql-hackers@lists.postgresql.org; Mon, 22 Aug 2022 14:32:41 +0000 Received: from out2-smtp.messagingengine.com ([66.111.4.26]) by makus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1oQ8Tn-0003HS-2g for pgsql-hackers@postgresql.org; Mon, 22 Aug 2022 14:32:40 +0000 Received: from compute5.internal (compute5.nyi.internal [10.202.2.45]) by mailout.nyi.internal (Postfix) with ESMTP id 792FF5C0003; Mon, 22 Aug 2022 10:32:38 -0400 (EDT) Received: from mailfrontend2 ([10.202.2.163]) by compute5.internal (MEProxy); Mon, 22 Aug 2022 10:32:38 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-transfer-encoding :content-type:date:date:feedback-id:feedback-id:from:from :in-reply-to:in-reply-to:message-id:mime-version:references :reply-to:sender:subject:subject:to:to:x-me-proxy:x-me-proxy :x-me-sender:x-me-sender:x-sasl-enc; s=fm1; t=1661178758; x= 1661265158; bh=eyHl2IB3y0+BjTTihFddD+ZknQFhe8COvf5juPKCRMA=; b=f 4w+JLWmnUyCj5lNkY688JHofsngrQl2pwCDmRmpDR12yrMxhxRC9dIzRRi1Eh9d7 uz+J3QTrPKgbvqkJumu9SBebsr8Js1yilYjGt4s8v+BWSgB8PCw3IvPmAPrdgi/a S2wzksbACDFULeJr+if2eGMMvZFxXIIIrjMLSWG1ee/WDUUn3bgQdquJ68KczV03 U6J288Ke6Miay+MM7tgPLY/ZqTRV5VEcSBsSqkVWuDF243El7cyKIG1IWEEFT/71 kxAEJ2dKxRTcYoSU7gDRI5yWxJr1nBNGJsciA18ybVe4FlVA5NN1e7hnDkrtYcUL zqnD35Gy2CWtqf0J3CUhg== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvfedrvdeijedgjeelucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhepkfffgggfuffvvehfhfgjtgfgsehtjeertddtfeejnecuhfhrohhmpefrvght vghrucfgihhsvghnthhrrghuthcuoehpvghtvghrrdgvihhsvghnthhrrghuthesvghnth gvrhhprhhishgvuggsrdgtohhmqeenucggtffrrghtthgvrhhnpeehleffgeegudejteei hfelteduvdeifffhffdvjedvffegjeekudeludehudeifeenucevlhhushhtvghrufhiii gvpedtnecurfgrrhgrmhepmhgrihhlfhhrohhmpehpvghtvghrrdgvihhsvghnthhrrghu thesvghnthgvrhhprhhishgvuggsrdgtohhm X-ME-Proxy: Feedback-ID: i131946ab:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Mon, 22 Aug 2022 10:32:37 -0400 (EDT) Message-ID: <3c567776-e16a-0b9f-afd0-711e673f4fb3@enterprisedb.com> Date: Mon, 22 Aug 2022 16:32:36 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:91.0) Gecko/20100101 Thunderbird/91.12.0 Subject: Re: Strip -mmacosx-version-min options from plperl build Content-Language: en-US To: Andres Freund , Tom Lane Cc: pgsql-hackers 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> From: Peter Eisentraut In-Reply-To: <20220820214447.enuetjm5cv75wwpd@awork3.anarazel.de> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On 20.08.22 23:44, Andres Freund wrote: > On 2022-08-20 16:53:31 -0400, Tom Lane wrote: >> Andres Freund writes: >>> Maybe a daft question: Why do want any of the -l flags other than -lperl? With >>> the patch configure spits out the following on my debian system: >> >>> checking for CFLAGS to compile embedded Perl... -DDEBIAN >>> checking for flags to link embedded Perl... -L/usr/lib/x86_64-linux-gnu/perl/5.34/CORE -lperl -ldl -lm -lpthread -lc -lcrypt >> >>> those libraries were likely relevant to build libperl, but don't look relevant >>> for linking to it dynamically. >> >> I'm certain that there are/were platforms that insist on those libraries >> being mentioned anyway. Maybe they are all obsolete now? > > I don't think any of the supported platforms require it for stuff used inside > the shared library (and we'd be in trouble if so, check e.g. libpq.pc). But of > course that's different if there's inline function / macros getting pulled in. > > Which turns out to be an issue on AIX. All the -l flags added by perl can be > removed for xlc, but for gcc, -lpthreads (or -pthread) it is required. > > Tried it on Solaris (32 bit, not sure if there's a 64bit perl available), > works. Does that mean my proposed patch (v2) is adequate for these platforms, or does it need further analysis?