# HG changeset patch # User "Yann E. MORIN" # Date 1298312848 -3600 # Node ID 9e1a17fdf3631049b7baef684ca217cd3de59ed3 # Parent 6336f985e2c00af16669d138eb1b1b47c35b145b 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 -r 6336f985e2c0 -r 9e1a17fdf363 scripts/build/libc/glibc-eglibc.sh-common --- a/scripts/build/libc/glibc-eglibc.sh-common Mon Feb 21 19:20:19 2011 +0100 +++ b/scripts/build/libc/glibc-eglibc.sh-common Mon Feb 21 19:27:28 2011 +0100 @@ -83,7 +83,12 @@ # 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