From bcc14949ad85fd91a2fdb47385b244c090d15fc7 Mon Sep 17 00:00:00 2001 From: Sam Hocevar Date: Thu, 1 Sep 2011 17:39:21 +0000 Subject: [PATCH] build: check for and build using -O3 -ffastmath. --- configure.ac | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/configure.ac b/configure.ac index 24488e39..02d28b81 100644 --- a/configure.ac +++ b/configure.ac @@ -49,13 +49,13 @@ AC_ARG_ENABLE(experimental, AC_ARG_ENABLE(cppunit, [ --enable-cppunit use cppunit for unit tests (autodetected)]) -AC_CHECK_HEADERS(stdio.h stdarg.h inttypes.h endian.h stdint.h getopt.h) +AC_CHECK_HEADERS(stdio.h stdarg.h inttypes.h endian.h stdint.h getopt.h fastmath.h) if test "${enable_debug}" = "yes"; then AC_DEFINE(LOL_DEBUG, 1, Define to 1 to activate debug) OPT="-O" else - OPT="-O2 -fno-strength-reduce -fomit-frame-pointer" + OPT="-O3 -ffast-math -fno-strength-reduce -fomit-frame-pointer" fi if test "${enable_release}" = "yes"; then