From 01b18abf93c1999397563e75fe1bfbbe0e080ae9 Mon Sep 17 00:00:00 2001 From: Dan Nicholson Date: Thu, 1 Nov 2007 06:01:53 -0700 Subject: Add -fno-strict-aliasing workaround for all GCC targets Use a GCC option to work around aliasing bugs. See commit 013dbcd for more details. --- configs/darwin | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'configs/darwin') diff --git a/configs/darwin b/configs/darwin index 7826ecc605e..76f3f74d4e6 100644 --- a/configs/darwin +++ b/configs/darwin @@ -10,6 +10,10 @@ CXX = cc CFLAGS = -I/usr/X11R6/include -O3 -fPIC -fno-common -ffast-math -funroll-loops -fexpensive-optimizations -no-cpp-precomp -dynamic -Ddarwin CXXFLAGS = -I/usr/X11R6/include -O3 -fPIC -fno-common -ffast-math -funroll-loops -fexpensive-optimizations -no-cpp-precomp -dynamic -Ddarwin +# Work around aliasing bugs - developers should comment this out +CFLAGS += -fno-strict-aliasing +CXXFLAGS += -fno-strict-aliasing + # Library names (actual file names) GL_LIB_NAME = libGL.dylib GLU_LIB_NAME = libGLU.dylib -- cgit v1.2.3