From 07b0b039dfddbeb3ef3733f172d7be49cd1ccf8a Mon Sep 17 00:00:00 2001 From: Ahmet Inan Date: Thu, 28 Feb 2013 10:47:12 +0100 Subject: [PATCH] replace -ffast-math with explicit optimizations gcc usualy does the right thing with -ffast-math but better be sure and enable only the safe optimizations. --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 3e99959..cffa5c1 100644 --- a/Makefile +++ b/Makefile @@ -1,5 +1,5 @@ -CFLAGS = -g -DUP=0 -DDN=1 -D_GNU_SOURCE=1 -W -Wall -O3 -std=c99 -ffast-math -fsingle-precision-constant $(shell sdl-config --cflags) +CFLAGS = -g -DUP=0 -DDN=1 -D_GNU_SOURCE=1 -W -Wall -O3 -std=c99 -fno-math-errno -ffinite-math-only -fno-rounding-math -fno-signaling-nans -fno-trapping-math -fcx-limited-range -fsingle-precision-constant $(shell sdl-config --cflags) LDFLAGS = -lm -lasound $(shell sdl-config --libs) all: encode decode debug