Skip site navigation (1) Skip section navigation (2)

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 (view raw or flat)
Thread:
Lists: pgsql-hackerspgsql-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

pgsql-hackers by date

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

pgsql-patches by date

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

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group