1.1 --- a/scripts/build/libc/glibc-eglibc.sh-common Sun Mar 03 22:18:35 2013 +0100
1.2 +++ b/scripts/build/libc/glibc-eglibc.sh-common Sun Mar 03 22:24:40 2013 +0100
1.3 @@ -402,9 +402,12 @@
1.4 # error: bits/syscall.h: No such file or directory
1.5 # solved by following copy; see http://sourceware.org/ml/crossgcc/2005-05/msg00168.html
1.6 # but it breaks arm, see http://sourceware.org/ml/crossgcc/2006-01/msg00091.html
1.7 + # Of course, only copy it if it does not already exist
1.8 case "${CT_ARCH}" in
1.9 arm) ;;
1.10 - *) if [ -f "misc/bits/syscall.h" ]; then
1.11 + *) if [ -f "${CT_HEADERS_DIR}/bits/syscall.h" ]; then
1.12 + CT_DoLog ALL "Not over-writing existing bits/syscall.h"
1.13 + elif [ -f "misc/bits/syscall.h" ]; then
1.14 CT_DoExecLog ALL cp -v "misc/bits/syscall.h" \
1.15 "${CT_HEADERS_DIR}/bits/syscall.h"
1.16 else