add -ffast-math to CFLAGS for all gcc builds
# endif
feenableexcept(exc);
+#ifdef HAVE_FESETENV
fesetenv (FE_NONIEEE_ENV);
+#endif
#elif HAVE_FPU_CONTROL_H
/* On s390-ibm-linux, the header exists, but the definitions
CFLAGS="${CFLAGS} -fno-common -Wall"
;;
* )
- CFLAGS="${CFLAGS} -Wall"
+ CFLAGS="${CFLAGS} -Wall -ffast-math"
;;
esac
;;
AC_FUNC_ALLOCA
AC_CHECK_FUNCS([lrand48 drand48 srand48 setmode setenv getenv \
- __freadable _sysconf getrusage strerror \
- cbrt lsqrt vsnprintf strtoul strtoll strtoull feenableexcept])
+ __freadable _sysconf getrusage strerror cbrt lsqrt vsnprintf \
+ strtoul strtoll strtoull feenableexcept fesetenv])
AC_REPLACE_FUNCS([strcasecmp strncasecmp])
%setup -q
%build
-%ifarch %ix86
-%define optflags -DNDEBUG -O3 -march=%{_target_cpu} -mcpu=i686 -ffast-math
-%endif
+# XXX ix86 only used to have -ffast-math, let's use everywhere
+%{expand: %%define optflags %{optflags} -ffast-math}
# %%configure is broken in RH7.3 rpmbuild - even in comments!
# need unreleased changes to gd, so use --with-mylibgd for now.
CFLAGS="$RPM_OPT_FLAGS" \