pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Daniel Verite <daniel@manitou-mail.org>
To: TalGloz <glozmantal@gmail.com>
Cc: pgsql-general@postgresql.org
Subject: Re: Linker errors while creating a PostgreSQL C extension function.
Date: Mon, 20 Aug 2018 15:47:26 +0200
Message-ID: <1e79e673-5580-45be-8dc2-fd92db81af28@manitou-mail.org> (raw)
In-Reply-To: <1534704516779-0.post@n3.nabble.com>

	TalGloz wrote:

> Do I have to replace my -shared in the link command with -fPIC?

No, but -fPIC should go into your CXXFLAGS.
The pgxs makefile handles CFLAGS, but as it doesn't do C++,
you're on your own for CXXFLAGS.

Best regards,
-- 
Daniel Vérité
PostgreSQL-powered mailer: http://www.manitou-mail.org
Twitter: @DanielVerite




view thread (21+ messages)  latest in thread

Message-ID: <1e79e673-5580-45be-8dc2-fd92db81af28@manitou-mail.org>
Permalink:  ../1e79e673-5580-45be-8dc2-fd92db81af28@manitou-mail.org/
Also on:    postgresql.org/message-id/1e79e673-5580-45be-8dc2-fd92db81af28@manitou-mail.org

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-general@postgresql.org
  Cc: daniel@manitou-mail.org, glozmantal@gmail.com
  Subject: Re: Linker errors while creating a PostgreSQL C extension function.
  In-Reply-To: <1e79e673-5580-45be-8dc2-fd92db81af28@manitou-mail.org>
  References: <1534704516779-0.post@n3.nabble.com> <1e79e673-5580-45be-8dc2-fd92db81af28@manitou-mail.org>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox