OSDN Git Service

nptl: Fix libpthread build when UCLIBC_LINUX_SPECIFIC is disabled
authorCarmelo Amoroso <carmelo.amoroso@st.com>
Mon, 20 Sep 2010 13:03:17 +0000 (15:03 +0200)
committerCarmelo Amoroso <carmelo.amoroso@st.com>
Mon, 20 Sep 2010 13:03:17 +0000 (15:03 +0200)
commit0f85b228aa3f5ea797e10e69deae54ea898cb44a
tree4e58a45cacf954d7f7ca1d3ecb8519cec99ab10f
parentef65e97083363ffaeeb5fcf3a37d074b74eafb0d
nptl: Fix libpthread build when UCLIBC_LINUX_SPECIFIC is disabled

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@st.com>
include/sys/mman.h
libc/sysdeps/linux/common/Makefile.in
libc/sysdeps/linux/common/statfs.c