summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYann E. MORIN" <yann.morin.1998@anciens.enib.fr>2011-02-21 18:27:28 (GMT)
committerYann E. MORIN" <yann.morin.1998@anciens.enib.fr>2011-02-21 18:27:28 (GMT)
commitae126c295b6e2c387a38184ed893cdfa55d36522 (patch)
tree9124448915c0f156507890907e1e5a974d41765b
parent43e89c8dddfb0c6ef90a1e72a3f7b569ac44e82a (diff)
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>
-rw-r--r--scripts/build/libc/glibc-eglibc.sh-common7
1 files changed, 6 insertions, 1 deletions
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