[git commit prelink 1/1] nptl: Fix libpthread build when UCLIBC_LINUX_SPECIFIC is disabled

Carmelo Amoroso carmelo.amoroso at st.com
Fri Sep 24 06:07:41 UTC 2010


commit: http://git.uclibc.org/uClibc/commit/?id=0f85b228aa3f5ea797e10e69deae54ea898cb44a
branch: http://git.uclibc.org/uClibc/commit/?id=refs/heads/prelink

NPTL library needs both madvise and statfs symbols, that are guarded
by UCLIBC_LINUX_SPECIFIC option. This fix provides these symbols too
when NPTL is used, indipendently by UCLIBC_LINUX_SPECIFIC choice.
Otherwise libpthread link fails as below:

LD libpthread-0.9.32-git.so
libpthread/nptl/libpthread_so.a(pthread_create.oS): In function `__free_tcb':
pthread_create.c:(.text+0x1184): undefined reference to `madvise'
libpthread/nptl/libpthread_so.a(sem_open.oS): In function `__where_is_shmfs':
sem_open.c:(.text+0x764): undefined reference to `statfs'
collect2: ld returned 1 exit status
make: *** [lib/libpthread.so] Error 1

Signed-off-by: Carmelo Amoroso <carmelo.amoroso at st.com>

Patch is too large, so refusing to show it


More information about the uClibc-cvs mailing list