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 1jtz06-0002If-Md for pgsql-hackers@arkaria.postgresql.org; Fri, 10 Jul 2020 19:48:02 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1jtz05-0005FB-M1 for pgsql-hackers@arkaria.postgresql.org; Fri, 10 Jul 2020 19:48:01 +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 1jtz05-0005Cp-FF for pgsql-hackers@lists.postgresql.org; Fri, 10 Jul 2020 19:48:01 +0000 Received: from wforward4-smtp.messagingengine.com ([64.147.123.34]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1jtz02-0002tt-U7 for pgsql-hackers@lists.postgresql.org; Fri, 10 Jul 2020 19:48:00 +0000 Received: from compute1.internal (compute1.nyi.internal [10.202.2.41]) by mailforward.west.internal (Postfix) with ESMTP id AB0E416F7; Fri, 10 Jul 2020 15:47:57 -0400 (EDT) Received: from mailfrontend2 ([10.202.2.163]) by compute1.internal (MEProxy); Fri, 10 Jul 2020 15:47:57 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=content-transfer-encoding:content-type :date:from:in-reply-to:message-id:mime-version:references :subject:to:x-me-proxy:x-me-proxy:x-me-sender:x-me-sender :x-sasl-enc; s=fm3; bh=MdJHHmU03HpkP7VEPOiRWD10KAkazK/MPuubX2I6V 5U=; b=SmeU8Xd+WkN2C25gZHLbqzoHa7JDfRs/tLXddQYqj0uNWXQg58ejaBMCH GkFdjMPwjeCkpAUgcfmSbeP4U4Bj0zHTl7MPdMn6uQ0W4KlgsVWTYN8hFP/TbXhD 0xE1JnPAYNF31WGDRlCZuS33cBWdOFKfVHkFtGs5YD1uGRX6wQIUToNP0n2AFNn5 +FTCBZjjONvq5ZYXRuzRSixJzdZRtv/QG8Jd2mzaQiBWWToPjwTAJAzBrGZr8tdT fwRRWttyTj7IXxV3m8JsOZ7dbMUtSV2JS7jY9ORSQaU027h3P8HVrQWeCVK15e0Q dE0d9SQOgmTmcRnvB13Ywq6mlaTZw== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeduiedrvddugddugeejucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhepuffvfhfhohfkffgfgggjtgfgsehtjeertddtfeejnecuhfhrohhmpefrvght vghrucfgihhsvghnthhrrghuthcuoehpvghtvghrrdgvihhsvghnthhrrghuthesvdhnug hquhgrughrrghnthdrtghomheqnecuggftrfgrthhtvghrnheptdevgeehtdejvdevvdel jeeuveejjedtleelgfekleefieekjeelgfektdduuedvnecuffhomhgrihhnpedvnhguqh hurggurhgrnhhtrdgtohhmnecukfhppeelfedrvdegfedrudeluddrvdefkeenucevlhhu shhtvghrufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfhhrohhmpehpvghtvghrrdgvih hsvghnthhrrghuthesvdhnughquhgrughrrghnthdrtghomh X-ME-Proxy: Received: from april.pezone.net (p5df3bfee.dip0.t-ipconnect.de [93.243.191.238]) by mail.messagingengine.com (Postfix) with ESMTPA id 96BAD3060067; Fri, 10 Jul 2020 15:47:56 -0400 (EDT) Subject: Re: [Patch] Add missing libraries to Libs.private of libpq.pc To: Sandro Mani , PostgreSQL Hackers References: <837d1dcf-2fca-ee6e-0d7e-6bce1a1bac75@gmail.com> From: Peter Eisentraut Organization: 2ndQuadrant Message-ID: <033443ae-cccc-ad2f-51f6-8b5c25cc2d2c@2ndquadrant.com> Date: Fri, 10 Jul 2020 21:47:54 +0200 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.14; rv:52.0) Gecko/20100101 Thunderbird/52.9.1 MIME-Version: 1.0 In-Reply-To: <837d1dcf-2fca-ee6e-0d7e-6bce1a1bac75@gmail.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk On 2020-04-08 11:38, Sandro Mani wrote: > The following patch, which we added to build mingw-postgresql on Fedora, > adds some missing libraries to Libs.private of libpq.pc, discovered when > attempting to statically link with libpq: > > -lz: is required by -lcrypto I think the correct fix for that would be to add libssl to libpq's Requires.private. > -liconv: is required by -lintl (though possibly depends on whether > gettext was compiled with iconv support) Yeah, in both of these cases it depends on what libssl or libintl variant you actually got. It could be the OS one or a separately installed one, it could be one with or without pkg-config support. I'm not sure what a robust solution would be. -- Peter Eisentraut http://www.2ndQuadrant.com/ PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services