Re: [HACKERS] Fix linking of OpenLDAP libraries - Mailing list pgsql-patches

From Albe Laurenz
Subject Re: [HACKERS] Fix linking of OpenLDAP libraries
Date
Msg-id 52EF20B2E3209443BC37736D00C3C1380A48EFC6@EXADV1.host.magwien.gv.at
Whole thread Raw
Responses Re: [HACKERS] Fix linking of OpenLDAP libraries
Re: [HACKERS] Fix linking of OpenLDAP libraries
List 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

pgsql-patches by date:

Previous
From: "Albe Laurenz"
Date:
Subject: Re: [HACKERS] Fix linking of OpenLDAP libraries
Next
From: Martijn van Oosterhout
Date:
Subject: Re: [HACKERS] Fix linking of OpenLDAP libraries