diff options
author | Yann E. MORIN" <yann.morin.1998@anciens.enib.fr> | 2008-08-26 21:37:46 +0000 |
---|---|---|
committer | Yann E. MORIN" <yann.morin.1998@anciens.enib.fr> | 2008-08-26 21:37:46 +0000 |
commit | 0a99eb0c77d25d34e97571a10352247b9d251653 (patch) | |
tree | 7e5c66cdcd6ce5e1a949e2d8c5b61b516b0f07bf /scripts/build/libc_glibc.sh | |
parent | 477baecf46f8025e303f97c6508608610961d5c6 (diff) | |
download | crosstool-ng-0a99eb0c77d25d34e97571a10352247b9d251653.tar.gz crosstool-ng-0a99eb0c77d25d34e97571a10352247b9d251653.tar.bz2 crosstool-ng-0a99eb0c77d25d34e97571a10352247b9d251653.zip |
Enable glibc to include support for kernel versions different than the version from the kernel headers.
Thanks to Nate CASE <ncase@xes-inc.com> for suggesting this use-case, and providing the patch.
/trunk/scripts/build/libc_glibc.sh | 4 2 2 0 +-
/trunk/scripts/build/libc_eglibc.sh | 2 1 1 0 +-
/trunk/config/libc/glibc-eglibc-common.in | 44 44 0 0 +++++++++++++++++++++++++++++++++++++
3 files changed, 47 insertions(+), 3 deletions(-)
Diffstat (limited to 'scripts/build/libc_glibc.sh')
-rw-r--r-- | scripts/build/libc_glibc.sh | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/scripts/build/libc_glibc.sh b/scripts/build/libc_glibc.sh index 63ff3987..b864a5be 100644 --- a/scripts/build/libc_glibc.sh +++ b/scripts/build/libc_glibc.sh @@ -211,7 +211,7 @@ do_libc_start_files() { extra_config="" case "${CT_LIBC_GLIBC_EXTRA_CONFIG}" in *enable-kernel*) ;; - *) extra_config="${extra_config} --enable-kernel=$(echo ${CT_KERNEL_VERSION} |sed -r -e 's/^([^.]+\.[^.]+\.[^.]+)(|\.[^.]+)$/\1/;')" + *) extra_config="${extra_config} --enable-kernel=$(echo ${CT_LIBC_GLIBC_MIN_KERNEL} |sed -r -e 's/^([^.]+\.[^.]+\.[^.]+)(|\.[^.]+)$/\1/;')" esac case "${CT_LIBC_GLIBC_EXTRA_CONFIG}" in *-tls*) ;; @@ -314,7 +314,7 @@ do_libc() { # We don't need to be conditional on wether the user did set different # values, as they CT_LIBC_GLIBC_EXTRA_CONFIG is passed after extra_config - extra_config="--enable-kernel=$(echo ${CT_KERNEL_VERSION} |sed -r -e 's/^([^.]+\.[^.]+\.[^.]+)(|\.[^.]+)$/\1/;')" + extra_config="--enable-kernel=$(echo ${CT_LIBC_GLIBC_MIN_KERNEL} |sed -r -e 's/^([^.]+\.[^.]+\.[^.]+)(|\.[^.]+)$/\1/;')" case "${CT_THREADS}" in nptl) extra_config="${extra_config} --with-__thread --with-tls";; |