mirror of
https://github.com/crosstool-ng/crosstool-ng.git
synced 2025-02-20 17:12:55 +00:00
Fix testing glibc versions for -pipe.
/trunk/scripts/build/libc_glibc.sh | 6 4 2 0 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-)
This commit is contained in:
parent
3d8a1efd05
commit
1dc26cbbcd
@ -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}"
|
||||
|
Loading…
x
Reference in New Issue
Block a user