diff -r 98baeb928964 -r 2be7232a73ac scripts/build/libc_glibc.sh --- a/scripts/build/libc_glibc.sh Sat Jul 07 09:58:14 2007 +0000 +++ b/scripts/build/libc_glibc.sh Sat Jul 28 21:34:41 2007 +0000 @@ -158,6 +158,9 @@ # 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"