aboutsummaryrefslogtreecommitdiffstats
path: root/configure.ac
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2013-10-30 18:14:46 +0100
committerMax Kellermann <max@duempel.org>2013-10-30 18:30:04 +0100
commit672fc8d79b454ccc10f0bee2c6bec9098a41e91d (patch)
tree6e726b19922b19a73d3cfc8c16520b87f7bd164d /configure.ac
parent84ff1a680aa7652bb37e11f4ed1325be8f242700 (diff)
downloadmpd-672fc8d79b454ccc10f0bee2c6bec9098a41e91d.tar.gz
mpd-672fc8d79b454ccc10f0bee2c6bec9098a41e91d.tar.xz
mpd-672fc8d79b454ccc10f0bee2c6bec9098a41e91d.zip
configure.ac: enable -ffast-math and -ftree-vectorize
Allows advanced compiler optimization.
Diffstat (limited to 'configure.ac')
-rw-r--r--configure.ac4
1 files changed, 4 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac
index fd2d884a0..b38f2436b 100644
--- a/configure.ac
+++ b/configure.ac
@@ -1460,6 +1460,8 @@ dnl CFLAGS
dnl ---------------------------------------------------------------------------
AX_APPEND_COMPILE_FLAGS([-fvisibility=hidden])
+AX_APPEND_COMPILE_FLAGS([-ffast-math])
+AX_APPEND_COMPILE_FLAGS([-ftree-vectorize])
AC_LANG_PUSH([C++])
AX_APPEND_COMPILE_FLAGS([-fvisibility=hidden])
@@ -1467,6 +1469,8 @@ AX_APPEND_COMPILE_FLAGS([-fno-threadsafe-statics])
AX_APPEND_COMPILE_FLAGS([-fmerge-all-constants])
AX_APPEND_COMPILE_FLAGS([-fno-exceptions])
AX_APPEND_COMPILE_FLAGS([-fno-rtti])
+AX_APPEND_COMPILE_FLAGS([-ffast-math])
+AX_APPEND_COMPILE_FLAGS([-ftree-vectorize])
AC_LANG_POP
dnl ---------------------------------- debug ----------------------------------