Simon 'corecode' Schubert wrote:
Have a generic "proxy" lib called libpthread.so.0 or so, which defines the available functions and where all binaries can be linked against. This lib however does not provide any functionality. Instead, there would be some way that this lib (or rtld, or so) decides on execution time (or whenever it is being runtime linked) which real threading lib to load. Some sort of objformat, just for libs.
Okay, I got it to work. Remember: never use ld to link libs, always use gcc (gotta check our makefiles). Basic principle of operation: 1. have a proxy.so which defines the available functions as weak references. 2. proxy lib has a constructor which performs a dlopen(), depending on an environment variable or whatever. however, this does not work for proxy.so being opened with dlopen(). so, opinions on which way to use? cheers simon -- Serve - BSD +++ RENT this banner advert +++ ASCII Ribbon /"\ Work - Mac +++ space for low €€€ NOW!1 +++ Campaign \ / Party Enjoy Relax | http://dragonflybsd.org Against HTML \ Dude 2c 2 the max ! http://golden-apple.biz Mail + News / \
signature.asc
Description: OpenPGP digital signature
