libc/glibc: fix installing syscall.h when installing start-files.
Reported-by: Rafael C <groups.r2@gmail.com>
Reported-by: Jérôme BARDON <bardon.pro@gmail.com>
Reported-by: Daniel Price <daniel.price@gmail.com>
[yann.morin.1998@free.fr: use a conditional approach, also suggested by Daniel]
Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
1.1 --- a/scripts/build/libc/glibc-eglibc.sh-common Sun Mar 03 17:17:55 2013 +0100
1.2 +++ b/scripts/build/libc/glibc-eglibc.sh-common Sun Mar 03 22:18:35 2013 +0100
1.3 @@ -404,8 +404,15 @@
1.4 # but it breaks arm, see http://sourceware.org/ml/crossgcc/2006-01/msg00091.html
1.5 case "${CT_ARCH}" in
1.6 arm) ;;
1.7 - *) CT_DoExecLog ALL cp -v "misc/syscall-list.h" \
1.8 - "${CT_HEADERS_DIR}/bits/syscall.h"
1.9 + *) if [ -f "misc/bits/syscall.h" ]; then
1.10 + CT_DoExecLog ALL cp -v "misc/bits/syscall.h" \
1.11 + "${CT_HEADERS_DIR}/bits/syscall.h"
1.12 + else
1.13 + # "Old" glibces do not have the above file,
1.14 + # but provide this one:
1.15 + CT_DoExecLog ALL cp -v "misc/syscall-list.h" \
1.16 + "${CT_HEADERS_DIR}/bits/syscall.h"
1.17 + fi
1.18 ;;
1.19 esac
1.20 fi