mirror of
https://github.com/crosstool-ng/crosstool-ng.git
synced 2024-12-23 14:42:26 +00:00
Warn when using -pipe with glibc>=2.6.
This commit is contained in:
parent
e58af8f79e
commit
46e19208cd
@ -225,6 +225,7 @@ do_libc_start_files() {
|
||||
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
|
||||
# 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}"
|
||||
else
|
||||
extra_cc_args="${CT_CFLAGS_FOR_HOST}"
|
||||
@ -334,6 +335,7 @@ do_libc() {
|
||||
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
|
||||
# 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}"
|
||||
else
|
||||
extra_cc_args="${CT_CFLAGS_FOR_HOST}"
|
||||
|
Loading…
Reference in New Issue
Block a user