Re: Linker errors while creating a PostgreSQL C extension function.

From: "Daniel Verite" <daniel(at)manitou-mail(dot)org>
To: "TalGloz" <glozmantal(at)gmail(dot)com>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: Linker errors while creating a PostgreSQL C extension function.
Date: 2018-08-20 13:47:26
Message-ID: 1e79e673-5580-45be-8dc2-fd92db81af28@manitou-mail.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

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

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message TalGloz 2018-08-20 13:56:05 Re: Linker errors while creating a PostgreSQL C extension function.
Previous Message Nick Dro 2018-08-20 13:46:42 RE: Re: Re: Allow Reg Expressions in Position function