diff --git a/chapter05/gcc-pass1.xml b/chapter05/gcc-pass1.xml index 4afe2cdc9..cf305fdb0 100644 --- a/chapter05/gcc-pass1.xml +++ b/chapter05/gcc-pass1.xml @@ -86,7 +86,8 @@ int main() } EOF gcc nan2008.c -o nan2008 -if ./nan2008; then +if ! grep -q nan_legacy /proc/cpuinfo && + (grep -q nan_2008 /proc/cpuinfo || ./nan2008) then NAN_SWITCH=--with-nan=2008 fi @@ -226,13 +227,6 @@ fi to fail), or produce bad results (causing test failures building some packages, for example Glibc and Python). -