[freetds] ct-lib unit tests link statically

ZIGLIO, Frediano, VF-IT Frediano.Ziglio at vodafone.com
Wed Jul 9 06:03:03 EDT 2008


> 
> ZIGLIO, Frediano, VF-IT wrote:
> > > If we find a way to cause libtool's RPATH to precede the values in
> > > LDFLAGS, we could go back to dynamically linked unit tests.  
> > > 
> > 
> > ??
> > 
> > I don't understand... I don't use any flags
> 
> For normal executables that use a FreeTDS library, e.g. 
> bsqldb, I need to
> have /usr/local/lib in its RPATH.   The dynamic linker 
> doesn't search in
> /usr/local/lib by default.  
> 
> For unit tests, of course, I don't want to use 
> /usr/local/lib, but it's
> being put at the front of the RPATH anyway.  
> 

Mmm... so the problem is, you want to add a directory to RPATH but this path is added
before libraries tests. It seems you have a problem with libtool. libtool should add local
--rpaths before global one, not after.. perhaps you didn't use proper way to override
RPATHs (that is a way that like to libtool). 

freddy77

PS: IMO libtool is a knife with two side blade... if someone follow me... we need it but
it's a really nigthmare...
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/x-pkcs7-signature
Size: 3129 bytes
Desc: not available
Url : http://lists.ibiblio.org/pipermail/freetds/attachments/20080709/5ec622e7/attachment.bin 


More information about the FreeTDS mailing list