From ae126c295b6e2c387a38184ed893cdfa55d36522 Mon Sep 17 00:00:00 2001 From: "Yann E. MORIN\"" Date: Mon, 21 Feb 2011 19:27:28 +0100 Subject: 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" diff --git a/scripts/build/libc/glibc-eglibc.sh-common b/scripts/build/libc/glibc-eglibc.sh-common index 5ead4b3..24743b1 100644 --- a/scripts/build/libc/glibc-eglibc.sh-common +++ b/scripts/build/libc/glibc-eglibc.sh-common @@ -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 -- cgit v0.10.2-6-g49f6