mirror of
https://github.com/crosstool-ng/crosstool-ng.git
synced 2025-04-15 15:06:36 +00:00
libc/glibc: fix dubious construct when installing headers
This is dubious because if the copy fails, then we'll miss the error. Signed-off-by: "Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>
This commit is contained in:
parent
43e89c8ddd
commit
ae126c295b
@ -83,7 +83,12 @@ do_libc_start_files() {
|
||||
# error: bits/syscall.h: No such file or directory
|
||||
# solved by following copy; see http://sourceware.org/ml/crossgcc/2005-05/msg00168.html
|
||||
# but it breaks arm, see http://sourceware.org/ml/crossgcc/2006-01/msg00091.html
|
||||
[ "${CT_ARCH}" != "arm" ] && CT_DoExecLog ALL cp -v misc/syscall-list.h "${CT_HEADERS_DIR}/bits/syscall.h" || true
|
||||
case "${CT_ARCH}" in
|
||||
arm) ;;
|
||||
*) CT_DoExecLog ALL cp -v "misc/syscall-list.h" \
|
||||
"${CT_HEADERS_DIR}/bits/syscall.h"
|
||||
;;
|
||||
esac
|
||||
fi
|
||||
|
||||
if [ "${CT_THREADS}" = "nptl" ]; then
|
||||
|
Loading…
x
Reference in New Issue
Block a user