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
|
||||
else
|
||||
if test "$cross_compiling" = yes; then :
|
||||
ac_cv_c_gcc_strength_bug="yes"
|
||||
ac_cv_c_gcc_strength_bug="no"
|
||||
else
|
||||
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
||||
/* end confdefs.h. */
|
||||
|
|
|
@ -1797,7 +1797,7 @@ then
|
|||
for(i=0; i<4 - 1; i++) L[[i]] = L[[i + 1]];
|
||||
L[[i]] = 4;
|
||||
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"
|
||||
then
|
||||
EXTRACFLAGS="$EXTRACFLAGS -fno-strength-reduce"
|
||||
|
|
Loading…
Reference in New Issue