You could set LDFLAGS as: $ LDFLAGS="-L/usr/local/BerkeleyDB.4.4/lib -L/usr/local/lib/sasl2 -Wl,-R/usr/local/BerkeleyDB.4.4/lib -Wl,-R/usr/local/lib/sasl2"
gcc's "-Wl," option will pass follow string(as -R/usr/local/BerkeleyDB.4.4..) to linker. 2005/12/22, Mike Lindsey <[EMAIL PROTECTED]>: > I've got an OpenLDAP 2.3.11 build problem on FreeBSD 4.9. > > I've got sasl version 2.1.21 installed, and I've tried it with Berkeley DB > 4.2.52, and 4.4.16. > > here's what I get: > > $ CPPFLAGS="-I/usr/local/include/sasl -I/usr/include/gdbm > -I/usr/local/BerkeleyDB.4.4/include" > $ LDFLAGS="-L/usr/local/BerkeleyDB.4.4/lib -L/usr/local/lib/sasl2" > $ ./configure > <snip> > checking db.h usability... yes > checking db.h presence... yes > checking for db.h... yes > checking for Berkeley DB link (default)... yes > checking for Berkeley DB version match... yes > checking for Berkeley DB thread support... no > checking Berkeley DB version for BDB/HDB backends... no > configure: error: BDB/HDB: BerkeleyDB version incompatible > > > Any ideas? > > -- > Mike > > >
