Received: from malur.postgresql.org ([2a02:16a8:dc51::56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1frkfD-0000JX-Uc for pgsql-general@arkaria.postgresql.org; Mon, 20 Aug 2018 13:56:12 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1frkfB-0007E7-Qk for pgsql-general@arkaria.postgresql.org; Mon, 20 Aug 2018 13:56:09 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1frkfB-0007E0-FU for pgsql-general@lists.postgresql.org; Mon, 20 Aug 2018 13:56:09 +0000 Received: from n3.nabble.com ([162.255.23.22]) by makus.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1frkf8-0002Dg-IA for pgsql-general@postgresql.org; Mon, 20 Aug 2018 13:56:08 +0000 Received: from n3.nabble.com (localhost [127.0.0.1]) by n3.nabble.com (Postfix) with ESMTP id 5FF84EA83D6A for ; Mon, 20 Aug 2018 06:56:05 -0700 (MST) Date: Mon, 20 Aug 2018 06:56:05 -0700 (MST) From: TalGloz To: pgsql-general@postgresql.org Message-ID: <1534773365391-0.post@n3.nabble.com> In-Reply-To: <1e79e673-5580-45be-8dc2-fd92db81af28@manitou-mail.org> References: <1534676183995-0.post@n3.nabble.com> <1534680422044-0.post@n3.nabble.com> <2455c526-58ab-4f2b-a9c0-f2b2890ca365@manitou-mail.org> <1534704516779-0.post@n3.nabble.com> <1e79e673-5580-45be-8dc2-fd92db81af28@manitou-mail.org> Subject: Re: Linker errors while creating a PostgreSQL C extension function. MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk My CXXFLAGS has the -fPIC flag in it. As I understood from Tom Lane's previos post, I have to recompile the libseal.a if the -fPIC flag or turn the libseal.a into a libseal.so. Best regars, Tal -- Sent from: http://www.postgresql-archive.org/PostgreSQL-general-f1843780.html