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/aix-gcc | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'configs/aix-gcc') diff --git a/configs/aix-gcc b/configs/aix-gcc index 81467082a73..3b964f351f7 100644 --- a/configs/aix-gcc +++ b/configs/aix-gcc @@ -11,6 +11,10 @@ CXX = g++ CFLAGS = -O2 -DAIXV3 CXXFLAGS = -O2 -DAIXV3 +# Work around aliasing bugs - developers should comment this out +CFLAGS += -fno-strict-aliasing +CXXFLAGS += -fno-strict-aliasing + MKLIB_OPTIONS = -arch aix-gcc GL_LIB_DEPS = -lX11 -lXext -lm GLU_LIB_DEPS = -L$(TOP)/$(LIB_DIR) -l$(GL_LIB) -lm -- cgit v1.2.3