|
2014-01-29 17:04 AEST by Arthur Barrett - So the final pieces of the puzzle are:
- getting shared libraries to automatically load (cvsapi, cvstools etc)
- getting shared libraries to open using dlopen()
These both have hiccups. Mostly due to the fact that libtool is not finding any way to automatically build
shared libraries. As a workaround I'm using a shell script for $AR which is producing something, but not
very usable.
1. cvsapi etc. PATHS appear to be hard coded. i.e.: at runtime it searches for ../cvsapi/.libs/libcvsapi.a
instead of simply searching for libcvsapi.a on the system PATHS…
2. enum/pserver etc. dlopen needs an extra parameter to search archives for shared libraries
RTLD_MEMBER, but it then also requires a special filename path/to/library.a(shared_module.o).
I'm trying to use my shell script to produce 'fake' .a files that are really shared objects to get around
problem 2, and problem 1 is solved by running tests in cvsnt/src directory with './cvsnt info' |