From: pabs Date: Mon, 24 Jul 2006 10:42:09 +0000 (+0000) Subject: Disable -ffast-math, since it causes broken code on some platforms X-Git-Url: https://git.pterodactylus.net/?a=commitdiff_plain;h=60a0e0ea3b2f1edf2cd6d9133d0a5985f5dbaeaa;p=synfig.git Disable -ffast-math, since it causes broken code on some platforms git-svn-id: http://svn.voria.com/code@201 1f10aa63-cdf2-0310-b900-c93c546f37ac --- diff --git a/synfig-core/trunk/config/subs.m4 b/synfig-core/trunk/config/subs.m4 index c3f278b..ccce797 100644 --- a/synfig-core/trunk/config/subs.m4 +++ b/synfig-core/trunk/config/subs.m4 @@ -108,12 +108,12 @@ AC_DEFUN([AC_ARG_OPTIMIZATION], optimization_flags='' case "$optimization" in 0|no) optimization_flags="-O0";; - 1) optimization_flags="-O1 -ffast-math";; - 2|yes) optimization_flags="-O2 -ffast-math";; - pass1) optimization_flags="-O2 -ffast-math -fprofile-arcs";; - pass2) optimization_flags="-O2 -ffast-math -fbranch-probabilities";; - 3) optimization_flags="-O3 -ffast-math";; - *) optimization_flags="-O4 -ffast-math";; + 1) optimization_flags="-O1";; + 2|yes) optimization_flags="-O2";; + pass1) optimization_flags="-O2 -fprofile-arcs";; + pass2) optimization_flags="-O2 -fbranch-probabilities";; + 3) optimization_flags="-O3";; + *) optimization_flags="-O4";; esac CXXFLAGS="`echo $CXXFLAGS | sed 's:-O.::g'` $optimization_flags" CFLAGS="`echo $CFLAGS | sed 's:-O.::g'` $optimization_flags"