Re: [HACKERS] linux, bsd, i386-solaris and univel shared libraries.

Michael Meskes <meskes@topsystem.de>

From: Michael Meskes <meskes@topsystem.de>
To: azekulic@fesb.hr (Alen Zekulic)
Cc: pgsql-hackers@postgresql.org (PostgreSQL Hacker)
Date: 1998-04-24T11:33:05Z
Lists: pgsql-hackers
Alen Zekulic writes:
> > CFLAGS_SL: -fpic
>               ^^^^
> The shared library must be compiled with `-fPIC', and the static version
> must not be. In other words, each `*.c' file is compiled twice.

Normaly yes. But I didn't see this in any PostgreSQL makefile. I think using
-fPIC still creates a working static library. It does generate less
efficient code though.

> Take a look at the debian policy manual :-)).

:-)

> Here is the patch against the `ecpg/lib/Makefile.in'.

Applied to my source. I think we should add a similar patch to
libpq/Makefile and whatever else creates shared libs.

Michael

-- 
Dr. Michael Meskes, Project-Manager    | topsystem Systemhaus GmbH
meskes@topsystem.de                    | Europark A2, Adenauerstr. 20
meskes@debian.org                      | 52146 Wuerselen
Go SF49ers! Go Rhein Fire!             | Tel: (+49) 2405/4670-44
Use Debian GNU/Linux!                  | Fax: (+49) 2405/4670-10