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

From Michael Meskes
Subject Re: [HACKERS] linux, bsd, i386-solaris and univel shared libraries.
Date
Msg-id 199804241133.NAA12709@gauss.topsystem.de
Whole thread Raw
In response to Re: [HACKERS] linux, bsd, i386-solaris and univel shared libraries.  (Alen Zekulic <azekulic@fesb.hr>)
List 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

pgsql-hackers by date:

Previous
From: Alen Zekulic
Date:
Subject: Re: [HACKERS] linux, bsd, i386-solaris and univel shared libraries.
Next
From: "Vazsonyi Peter[ke]"
Date:
Subject: create operator problem