summaryrefslogtreecommitdiff
path: root/scripts/build/libc_glibc.sh
diff options
context:
space:
mode:
authorYann E. MORIN" <yann.morin.1998@anciens.enib.fr>2007-08-03 20:27:15 (GMT)
committerYann E. MORIN" <yann.morin.1998@anciens.enib.fr>2007-08-03 20:27:15 (GMT)
commit1dc89fa058f6a4e407af4cf02048a52bdf359ea2 (patch)
tree1dd4883d8b145ee553c324db9347b31bfd0f8dd8 /scripts/build/libc_glibc.sh
parent4c8537d25494867b14921dd091fbf57ee9fefa03 (diff)
A little cleanup in the glibc's pthread headers install.
Diffstat (limited to 'scripts/build/libc_glibc.sh')
-rw-r--r--scripts/build/libc_glibc.sh7
1 files changed, 5 insertions, 2 deletions
diff --git a/scripts/build/libc_glibc.sh b/scripts/build/libc_glibc.sh
index 32eb903..4b65cac 100644
--- a/scripts/build/libc_glibc.sh
+++ b/scripts/build/libc_glibc.sh
@@ -150,7 +150,7 @@ do_libc_headers() {
[ "${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
- pthread_h=
+ pthread_h="${CT_SRC_DIR}/${CT_LIBC_FILE}/${CT_THREADS}/sysdeps/pthread/pthread.h"
pthreadtypes_h=
case "${CT_THREADS}" in
nptl)
@@ -163,9 +163,12 @@ do_libc_headers() {
fi
;;
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"
;;
+ *)
+ pthread_h=
+ pthreadtypes_h=
+ ;;
esac
if [ -n "${pthread_h}" ]; then
cp -v "${pthread_h}" "${CT_HEADERS_DIR}/pthread.h" 2>&1 |CT_DoLog ALL