A little cleanup in the glibc's pthread headers install.

This commit is contained in:
Yann E. MORIN" 2007-08-03 20:27:15 +00:00
parent 4c8537d254
commit 1dc89fa058

View File

@ -150,7 +150,7 @@ do_libc_headers() {
[ "${CT_ARCH}" != "arm" ] && cp misc/syscall-list.h "${CT_HEADERS_DIR}/bits/syscall.h" || true [ "${CT_ARCH}" != "arm" ] && cp misc/syscall-list.h "${CT_HEADERS_DIR}/bits/syscall.h" || true
# Those headers are to be manually copied so gcc can build properly # Those headers are to be manually copied so gcc can build properly
pthread_h= pthread_h="${CT_SRC_DIR}/${CT_LIBC_FILE}/${CT_THREADS}/sysdeps/pthread/pthread.h"
pthreadtypes_h= pthreadtypes_h=
case "${CT_THREADS}" in case "${CT_THREADS}" in
nptl) nptl)
@ -163,9 +163,12 @@ do_libc_headers() {
fi fi
;; ;;
linuxthreads) linuxthreads)
pthread_h="${CT_SRC_DIR}/${CT_LIBC_FILE}/${CT_THREADS}/sysdeps/pthread/pthread.h"
pthreadtypes_h="${CT_SRC_DIR}/${CT_LIBC_FILE}/linuxthreads/sysdeps/pthread/bits/pthreadtypes.h" pthreadtypes_h="${CT_SRC_DIR}/${CT_LIBC_FILE}/linuxthreads/sysdeps/pthread/bits/pthreadtypes.h"
;; ;;
*)
pthread_h=
pthreadtypes_h=
;;
esac esac
if [ -n "${pthread_h}" ]; then if [ -n "${pthread_h}" ]; then
cp -v "${pthread_h}" "${CT_HEADERS_DIR}/pthread.h" 2>&1 |CT_DoLog ALL cp -v "${pthread_h}" "${CT_HEADERS_DIR}/pthread.h" 2>&1 |CT_DoLog ALL