Re: relocation R_X86_64_32 against `.rodata' can not be used when making a shared object

From: Mimiko <vbvbrj(at)gmail(dot)com>
To: Posthresql-general <pgsql-general(at)postgresql(dot)org>
Subject: Re: relocation R_X86_64_32 against `.rodata' can not be used when making a shared object
Date: 2014-05-29 16:16:10
Message-ID: 53875D4A.6010606@gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On 29.05.2014 17:10, Tom Lane wrote:
> As the message says, that means you need to have used -fPIC when
> building them (though -fpic might work as well depending on platform).

Thank you for answering.

Searching on net I couldn't understand what to compile with -fPIC. So
those libraries must be compiled with -fPIC. For libxml2 and libxslt I
use --with-pic. Is this sufficient? zlib and openssl does not have such
option. Then which of CFLAGS or CPPFLAGS should I set with -fPIC for them?

You are saying that postgresql will always generate shared libraries? If
I use -fPIC to compile other libraries, will postresql's compile will
include those libraries in its lib directory? ie, making postgresql
self-contained with this libraries?

--
Mimiko desu.

Browse pgsql-general by date

  From Date Subject
Next Message Tom Lane 2014-05-29 16:27:04 Re: Postgresql 9.2.4 - timezone error
Previous Message Pavel Stehule 2014-05-29 16:09:57 Re: Code for user-defined type