mirror of
https://github.com/crosstool-ng/crosstool-ng.git
synced 2025-01-30 16:14:09 +00:00
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>
This commit is contained in:
parent
75e7c5bc1b
commit
d12f807b16
@ -402,9 +402,12 @@ do_libc_backend_once() {
|
||||
# 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
|
||||
# Of course, only copy it if it does not already exist
|
||||
case "${CT_ARCH}" in
|
||||
arm) ;;
|
||||
*) if [ -f "misc/bits/syscall.h" ]; then
|
||||
*) if [ -f "${CT_HEADERS_DIR}/bits/syscall.h" ]; then
|
||||
CT_DoLog ALL "Not over-writing existing bits/syscall.h"
|
||||
elif [ -f "misc/bits/syscall.h" ]; then
|
||||
CT_DoExecLog ALL cp -v "misc/bits/syscall.h" \
|
||||
"${CT_HEADERS_DIR}/bits/syscall.h"
|
||||
else
|
||||
|
Loading…
x
Reference in New Issue
Block a user