Re: [HACKERS] Fix linking of OpenLDAP libraries

From: "Albe Laurenz" <all(at)adv(dot)magwien(dot)gv(dot)at>
To: "Tom Lane *EXTERN*" <tgl(at)sss(dot)pgh(dot)pa(dot)us>, <pgsql-hackers(at)postgresql(dot)org>
Cc: <pgsql-patches(at)postgresql(dot)org>
Subject: Re: [HACKERS] Fix linking of OpenLDAP libraries
Date: 2006-09-11 10:13:29
Message-ID: 52EF20B2E3209443BC37736D00C3C1380A48EFC6@EXADV1.host.magwien.gv.at
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers pgsql-patches

Tom Lane wrote:
>> Here is a new patch that replaces the previous one; it adds two
>> macros LDAP_LIBS_FE and LDAP_LIBS_BE for frontend and backend,
>> respectively.
>
>> I did not only add them to the Makefile for interfaces/libpq,
>> but also everywhere something is linked against libpq in case
>> somebody links static.
>
> Applied, but without that last part. It builds OK for me on Darwin,
> which is moderately picky about that sort of thing, but someone should
> try AIX.

It builds fine on AIX 5.3 as long as you tell it to link with
libpq.so. Static builds against libpq.a will fail.

Should -lldap or -lldap_r be added to pg_config --libs?
If yes, which of them?

Yours,
Laurenz Albe

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Martijn van Oosterhout 2006-09-11 11:20:55 Re: [HACKERS] Fix linking of OpenLDAP libraries
Previous Message Gregory Stark 2006-09-11 10:03:03 Re: Fixed length data types issue

Browse pgsql-patches by date

  From Date Subject
Next Message Martijn van Oosterhout 2006-09-11 11:20:55 Re: [HACKERS] Fix linking of OpenLDAP libraries
Previous Message Albe Laurenz 2006-09-11 06:56:43 Re: [HACKERS] Fix linking of OpenLDAP libraries