Abdelhamid Meddeb wrote:
Hi,
+1 Statically link is a bad idea in this case, IMHO.
OpenLDAP source code is released as a single unit. This situation is no different than building slapd itself against libldap_r. If you split things apart and mix versions, you can potentially break them.
Le 26/09/2015 20:39, Quanah Gibson-Mount a écrit :
--On Saturday, September 26, 2015 8:11 PM +0200 Michael Ströder michael@stroeder.com wrote:
HI!
I wonder what's considered best practice for building OpenLDAP and lmdb packages e.g. for a Linux distribution.
Fortunately lmdb seems to be leveraged by more and more other software. So Linux distributions start to ship lmdb libs and tools as separate packages.
- Do I have a chance to build OpenLDAP against those packages? Which
releases have to be aligned?
- Or should I link back-mdb statically into slapd when producing
OpenLDAP packages? This would probably also require to build separate version of the mdb tools.
OpenLDAP should only ever be statically linked to the version of liblmdb it ships with.