configure: Do not assume gcc strength reduce bug when cross-compiling.
This commit is contained in:
parent
3cf58187e4
commit
2498bc17d2
|
@ -13832,7 +13832,7 @@ if ${ac_cv_c_gcc_strength_bug+:} false; then :
|
||||||
$as_echo_n "(cached) " >&6
|
$as_echo_n "(cached) " >&6
|
||||||
else
|
else
|
||||||
if test "$cross_compiling" = yes; then :
|
if test "$cross_compiling" = yes; then :
|
||||||
ac_cv_c_gcc_strength_bug="yes"
|
ac_cv_c_gcc_strength_bug="no"
|
||||||
else
|
else
|
||||||
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
||||||
/* end confdefs.h. */
|
/* end confdefs.h. */
|
||||||
|
|
|
@ -1797,7 +1797,7 @@ then
|
||||||
for(i=0; i<4 - 1; i++) L[[i]] = L[[i + 1]];
|
for(i=0; i<4 - 1; i++) L[[i]] = L[[i + 1]];
|
||||||
L[[i]] = 4;
|
L[[i]] = 4;
|
||||||
return (Array[[1]] != -2 || L[[2]] != 3)]])],
|
return (Array[[1]] != -2 || L[[2]] != 3)]])],
|
||||||
[ac_cv_c_gcc_strength_bug="no"],[ac_cv_c_gcc_strength_bug="yes"],[ac_cv_c_gcc_strength_bug="yes"]) )
|
[ac_cv_c_gcc_strength_bug="no"],[ac_cv_c_gcc_strength_bug="yes"],[ac_cv_c_gcc_strength_bug="no"]) )
|
||||||
if test "$ac_cv_c_gcc_strength_bug" = "yes"
|
if test "$ac_cv_c_gcc_strength_bug" = "yes"
|
||||||
then
|
then
|
||||||
EXTRACFLAGS="$EXTRACFLAGS -fno-strength-reduce"
|
EXTRACFLAGS="$EXTRACFLAGS -fno-strength-reduce"
|
||||||
|
|
Loading…
Reference in New Issue