Re: Linker errors while creating a PostgreSQL C extension function. - Mailing list pgsql-general

From Daniel Verite
Subject Re: Linker errors while creating a PostgreSQL C extension function.
Date
Msg-id 1e79e673-5580-45be-8dc2-fd92db81af28@manitou-mail.org
Whole thread Raw
In response to Re: Linker errors while creating a PostgreSQL C extension function.  (TalGloz <glozmantal@gmail.com>)
Responses Re: Linker errors while creating a PostgreSQL C extension function.
List 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


pgsql-general by date:

Previous
From: Geoff Winkless
Date:
Subject: Re: Re: Allow Reg Expressions in Position function
Next
From: TalGloz
Date:
Subject: Re: Linker errors while creating a PostgreSQL C extension function.