diff options
Diffstat (limited to 'scripts/build/libc_glibc.sh')
-rw-r--r-- | scripts/build/libc_glibc.sh | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/scripts/build/libc_glibc.sh b/scripts/build/libc_glibc.sh index 1a5b7d90..0040a853 100644 --- a/scripts/build/libc_glibc.sh +++ b/scripts/build/libc_glibc.sh @@ -219,7 +219,8 @@ do_libc_start_files() { # Add some default CC args glibc_version_major=$(echo ${CT_LIBC_VERSION} |sed -r -e 's/^([^\.]+)\..*/\1/') glibc_version_minor=$(echo ${CT_LIBC_VERSION} |sed -r -e 's/^[^\.]+\.([^.]+).*/\1/') - if [ ${glibc_version_major} -ge 2 -a ${glibc_version_minor} -ge 6 ]; then + if [ ${glibc_version_major} -eq 2 -a ${glibc_version_minor} -ge 6 \ + -o ${glibc_version_major} -gt 2 ]; then # Don't use -pipe: configure chokes on it for glibc >= 2.6. CT_Test 'Removing "-pipe" for use with glibc>=2.6' "${CT_USE_PIPES}" = "y" extra_cc_args="${CT_CFLAGS_FOR_HOST/-pipe}" @@ -323,7 +324,8 @@ do_libc() { # Add some default CC args glibc_version_major=$(echo ${CT_LIBC_VERSION} |sed -r -e 's/^([^\.]+)\..*/\1/') glibc_version_minor=$(echo ${CT_LIBC_VERSION} |sed -r -e 's/^[^\.]+\.([^.]+).*/\1/') - if [ ${glibc_version_major} -ge 2 -a ${glibc_version_minor} -ge 6 ]; then + if [ ${glibc_version_major} -eq 2 -a ${glibc_version_minor} -ge 6 \ + -o ${glibc_version_major} -gt 2 ]; then # Don't use -pipe: configure chokes on it for glibc >= 2.6. CT_Test 'Removing "-pipe" for use with glibc>=2.6' "${CT_USE_PIPES}" = "y" extra_cc_args="${CT_CFLAGS_FOR_HOST/-pipe}" |