summaryrefslogtreecommitdiff
path: root/scripts/build
diff options
context:
space:
mode:
authorYann E. MORIN" <yann.morin.1998@anciens.enib.fr>2007-07-22 13:27:04 (GMT)
committerYann E. MORIN" <yann.morin.1998@anciens.enib.fr>2007-07-22 13:27:04 (GMT)
commit752c190425d360b4a98c611d89875a922fc454f5 (patch)
treef2f70592010c6bff0de4053e29e988af42f3b73f /scripts/build
parent1293ffef115e21ee0a9bd5e8a4ae9a75e5142a63 (diff)
Fix installing a glibc header for those archs that are in ports.
Diffstat (limited to 'scripts/build')
-rw-r--r--scripts/build/libc_glibc.sh3
1 files changed, 3 insertions, 0 deletions
diff --git a/scripts/build/libc_glibc.sh b/scripts/build/libc_glibc.sh
index bf5d26d..32eb903 100644
--- a/scripts/build/libc_glibc.sh
+++ b/scripts/build/libc_glibc.sh
@@ -158,6 +158,9 @@ do_libc_headers() {
# supported by ct-ng right now. See original crosstool when they are.
pthread_h="${CT_SRC_DIR}/${CT_LIBC_FILE}/${CT_THREADS}/sysdeps/pthread/pthread.h"
pthreadtypes_h="${CT_SRC_DIR}/${CT_LIBC_FILE}/nptl/sysdeps/unix/sysv/linux/${CT_KERNEL_ARCH}/bits/pthreadtypes.h"
+ if [ ! -f "${pthreadtypes_h}" ]; then
+ pthreadtypes_h="${CT_SRC_DIR}/${CT_LIBC_FILE}/${CT_LIBC}-ports-${CT_LIBC_VERSION}/sysdeps/unix/sysv/linux/${CT_KERNEL_ARCH}/nptl/bits/pthreadtypes.h"
+ fi
;;
linuxthreads)
pthread_h="${CT_SRC_DIR}/${CT_LIBC_FILE}/${CT_THREADS}/sysdeps/pthread/pthread.h"