------- Comment #22 from jakub at gcc dot gnu dot org 2006-01-09 17:41 ------- Just FYI, dlsym (RTLD_NEXT, "pthread_create") is wrong when using glibc. pthread_create is symbol versioned and there are on most arches 2 different pthread_create implementations. By using dlsym (RTLD_NEXT, "pthread_create") you will use the glibc 2.0 compatible one, which will have seriously bad side-effects. On x86_64 you are lucky because it has just the newer version.
-- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=13212
