OSDN Git Service

linuxthreads.old: only declare __pthread_xxx funcs hidden inside of libpthread
authorMike Frysinger <vapier@gentoo.org>
Sun, 22 Apr 2012 21:35:03 +0000 (17:35 -0400)
committerMike Frysinger <vapier@gentoo.org>
Sun, 22 Apr 2012 22:00:45 +0000 (18:00 -0400)
commit0c3247e4c1b710046228b9ab031199f74754a0f0
treeb1f9cdf3c8a2cbd020fc46b9811b89e1638d3bfb
parent4b24c5ad368d0312dbb9cfd6e028a3b21bba48cd
linuxthreads.old: only declare __pthread_xxx funcs hidden inside of libpthread

These stubs get used in libc as forwarding funcs, so we don't want them
labeled as hidden.  Otherwise, attempting to use them in other libraries
(like libdl) will result in references to symbols that only libpthread
provides.  Such as:
/usr/bin/python2.6: can't resolve symbol '__pthread_mutex_lock' in lib '/lib/libdl.so.0'.

This also brings the old code in line with the newer linuxthreads.

Signed-off-by: Mike Frysinger <vapier@gentoo.org>
libpthread/linuxthreads.old/internals.h