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 1kNKRY-0002UI-7j for pgsql-general@arkaria.postgresql.org; Tue, 29 Sep 2020 18:33:40 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1kNKRX-0003SL-4z for pgsql-general@arkaria.postgresql.org; Tue, 29 Sep 2020 18:33:39 +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 1kNKRW-0003SE-Tt for pgsql-general@lists.postgresql.org; Tue, 29 Sep 2020 18:33:38 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by makus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1kNKRU-0001i0-W7 for pgsql-general@lists.postgresql.org; Tue, 29 Sep 2020 18:33:37 +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 08TIXYOj713744; Tue, 29 Sep 2020 14:33:34 -0400 From: Tom Lane To: Joshua Poehls cc: pgsql-general@lists.postgresql.org Subject: Re: Compile 12.2 with specific OpenSSL libraries In-reply-to: References: <713345.1601403922@sss.pgh.pa.us> Comments: In-reply-to Joshua Poehls message dated "Tue, 29 Sep 2020 13:30:42 -0500" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <713742.1601404414.1@sss.pgh.pa.us> Date: Tue, 29 Sep 2020 14:33:34 -0400 Message-ID: <713743.1601404414@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk Joshua Poehls writes: > rpath and LD_LIBRARY_PATH are only relevant for the runtime > linking/resolution, right? My concern is that at *compilation time* the > wrong version of OpenSSL is being picked up. No; --with-libraries will control what's linked against. The problem you face is that the dynamic linker has its own idea of how to resolve the library references at runtime. (ldd just reports on what the dynamic linker would do; there's no trace in the executable file of exactly which copy of a shlib was linked against.) regards, tom lane