Re: libpq's pollution of application namespace - Mailing list pgsql-hackers

From Martijn van Oosterhout
Subject Re: libpq's pollution of application namespace
Date
Msg-id 20051020105949.GD30631@svana.org
Whole thread Raw
In response to Re: libpq's pollution of application namespace  ("William ZHANG" <uniware@zedware.org>)
List pgsql-hackers
On Thu, Oct 20, 2005 at 06:20:37PM +0800, William ZHANG wrote:
> I think it is a good idea to make the exported symbols clearer.
> We should only export the symbols needed. The
> output of "dlltool --export-all" is too big.
> AFAIK, we can generate *.def for Win32/MSVC++
> from a text file  like this.
>     PQclear
>     PQfn
>     FooGlobalData DATA

AIUI, we *do* limit the symbols for Windows (for libpq anyway, see
exports.txt file) we just don't for UNIX since it can't be done
portably. I posted a patch to -patches which does it for Linux and in
principle any platform using GCC but there's no consensus on whether we
should do it if it can't be done for everyone in a simple way.

Have a nice day,
--
Martijn van Oosterhout   <kleptog@svana.org>   http://svana.org/kleptog/
> Patent. n. Genius is 5% inspiration and 95% perspiration. A patent is a
> tool for doing 5% of the work and then sitting around waiting for someone
> else to do the other 95% so you can sue them.

pgsql-hackers by date:

Previous
From: "William ZHANG"
Date:
Subject: Re: libpq's pollution of application namespace
Next
From: "Guy Rouillier"
Date:
Subject: Re: 'a' == 'a ' (Was: RE: [pgsql-advocacy] [GENERAL] Oracle buys