Hello,

 

I am compiling few libraries using boost build on linux. There are some tests dveloped for each of these libraries. These tests are compiled as libraries.

 

A test suite, loads all these libraries using dlopen and runs the tests.

 

How can I specify library paths in the build directory as dll-path(similar to what exe linker command does with -rpath), so that I can dlopen the test library which links against the implementation library?

 

As a workaround, I could convert my text to exe with a dummy main and dlopen it but I would prefer to use them as a library.

 

Any way to obtain the current filesystem path of a library?

 

Thanks.

--

Regards

Shridhar