[Date Prev][Date Next] [Chronological] [Thread] [Top]

problem with shared build process on solaris



I just noticed that the build process under solaris, for the libraries,
isn't working properly, for openldap 2.0.7

I'm using
export LDFLAGS='-L/usr/local/ssl/lib -R/usr/local/ssl/lib'


to trigger correct linking. Which seems to work great for the regular
executables.

But when it comes to building the libraries, it is calling

/usr/ccs/bin/ld -G -h libldap_r.so.2 -o .libs/libldap_r.so.2.0.5 threads.lo
rdwr.lo tpool.lo thr_posix.lo thr_cthreads.lo thr_thr.lo thr_lwp.lo
thr_nt.lo thr_pth.lo thr_stub.lo extended.lo bind.lo controls.lo open.lo
result.lo error.lo compare.lo search.lo modify.lo add.lo modrdn.lo
delete.lo abandon.lo ufn.lo cache.lo cyrus.lo getfilter.lo sasl.lo sbind.lo
kbind.lo unbind.lo friendly.lo free.lo disptmpl.lo srchpref.lo dsparse.lo
tmplout.lo sort.lo getdn.lo getentry.lo getattr.lo getvalues.lo addentry.lo
request.lo os-ip.lo url.lo sortctrl.lo vlvctrl.lo init.lo options.lo
print.lo string.lo util-int.lo schema.lo charray.lo tls.lo dn.lo
os-local.lo dnssrv.lo utf-8.lo version.lo
-L/home/download/build/openldap-2.0.7/libraries -L/usr/local/ssl/lib
-L/usr/local/lib -lsasl -lssl -lcrypto -lc

Notice that there is no -R/usr/local/ssl/lib

As I said, this is odd, because for building just about everything else, it
properly has the -R clause.
and libtool seems to be called appropriately, with

/bin/sh /home/download/build/openldap-2.0.7/libtool --mode=link cc -rpath
/usr/local/lib -g -O2 -I../../include -I../../include -DLDAP_R_COMPILE
-I./../libldap -I/usr/local/include -I/usr/local/ssl/include
-L/home/download/build/openldap-2.0.7/libraries -L/usr/local/ssl/lib
-R/usr/local/ssl/lib -L/usr/local/lib -version-info 2:5:0 -o libldap_r.la
threads.lo rdwr.lo tpool.lo thr_posix.lo thr_cthreads.lo thr_thr.lo
thr_lwp.lo thr_nt.lo thr_pth.lo thr_stub.lo extended.lo bind.lo controls.lo
open.lo result.lo error.lo compare.lo search.lo modify.lo add.lo modrdn.lo
delete.lo abandon.lo ufn.lo cache.lo cyrus.lo getfilter.lo sasl.lo sbind.lo
kbind.lo unbind.lo friendly.lo free.lo disptmpl.lo srchpref.lo dsparse.lo
tmplout.lo sort.lo getdn.lo getentry.lo getattr.lo getvalues.lo addentry.lo
request.lo os-ip.lo url.lo sortctrl.lo vlvctrl.lo init.lo options.lo
print.lo string.lo util-int.lo schema.lo charray.lo tls.lo dn.lo
os-local.lo dnssrv.lo utf-8.lo version.lo  -lsasl  -lssl -lcrypto