diff options
author | Yann E. MORIN" <yann.morin.1998@free.fr> | 2013-03-03 22:18:35 +0100 |
---|---|---|
committer | Yann E. MORIN" <yann.morin.1998@free.fr> | 2013-03-03 22:18:35 +0100 |
commit | 75e7c5bc1b87ed601cfe599f8fee23979980aa90 (patch) | |
tree | 73116210f5eec5d0ca598747e8f32359632313c8 | |
parent | a5491bd775271074c9e1258f08abb1fdf3a192ea (diff) | |
download | crosstool-ng-75e7c5bc1b87ed601cfe599f8fee23979980aa90.tar.gz crosstool-ng-75e7c5bc1b87ed601cfe599f8fee23979980aa90.tar.bz2 crosstool-ng-75e7c5bc1b87ed601cfe599f8fee23979980aa90.zip |
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>
-rw-r--r-- | scripts/build/libc/glibc-eglibc.sh-common | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/scripts/build/libc/glibc-eglibc.sh-common b/scripts/build/libc/glibc-eglibc.sh-common index d89405b5..365767e9 100644 --- a/scripts/build/libc/glibc-eglibc.sh-common +++ b/scripts/build/libc/glibc-eglibc.sh-common @@ -404,8 +404,15 @@ do_libc_backend_once() { # but it breaks arm, see http://sourceware.org/ml/crossgcc/2006-01/msg00091.html case "${CT_ARCH}" in arm) ;; - *) CT_DoExecLog ALL cp -v "misc/syscall-list.h" \ - "${CT_HEADERS_DIR}/bits/syscall.h" + *) if [ -f "misc/bits/syscall.h" ]; then + CT_DoExecLog ALL cp -v "misc/bits/syscall.h" \ + "${CT_HEADERS_DIR}/bits/syscall.h" + else + # "Old" glibces do not have the above file, + # but provide this one: + CT_DoExecLog ALL cp -v "misc/syscall-list.h" \ + "${CT_HEADERS_DIR}/bits/syscall.h" + fi ;; esac fi |