switching threading libraries

Csaba Henk csaba-ml at creo.hu
Fri Apr 7 11:45:17 UTC 2006


Hi!

Compiling a threaded program foo with "-pthread", if I want to run it
like

  LD_LIBMAP=libpthread.so.2=libc_r.so foo

then it will complain

  /libexec/ld-elf.so.1: /usr/lib/libc_r.so: version LIBTHREAD_1_0 required by foo not defined

I know it's because symbol versioning has entered the scene... I just
wonder if there is some workaround... Some way to trasparently switch
between threading libs?

Thanks!

Regards,
Csaba



More information about the freebsd-current mailing list