mirror of
https://github.com/crosstool-ng/crosstool-ng.git
synced 2024-12-19 12:57:53 +00:00
A little cleanup in the glibc's pthread headers install.
This commit is contained in:
parent
4c8537d254
commit
1dc89fa058
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user