configure: Do not assume gcc strength reduce bug when cross-compiling.

This commit is contained in:
Sebastian Lackner 2015-07-16 01:57:37 +02:00 committed by Alexandre Julliard
parent 3cf58187e4
commit 2498bc17d2
2 changed files with 2 additions and 2 deletions

2
configure vendored
View File

@ -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. */

View File

@ -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"