libc/glibc: do not overwrite existing bits/syscall.h
author"Yann E. MORIN" <yann.morin.1998@free.fr>
Sun Mar 03 22:24:40 2013 +0100 (2013-03-03)
changeset 3195cbaf37cc20b7
parent 3194 23099a88a139
child 3196 1a7a04dc4eee
libc/glibc: do not overwrite existing bits/syscall.h

Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
Cc: Rafael C <groups.r2@gmail.com>
Cc: Jérôme BARDON <bardon.pro@gmail.com>
Cc: Daniel Price <daniel.price@gmail.com>
scripts/build/libc/glibc-eglibc.sh-common
     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