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/sunos4-gcc | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'configs/sunos4-gcc') diff --git a/configs/sunos4-gcc b/configs/sunos4-gcc index 2022dd7e8e..0942291589 100644 --- a/configs/sunos4-gcc +++ b/configs/sunos4-gcc @@ -11,5 +11,9 @@ CFLAGS = -fPIC -O3 -I/usr/openwin/include -I/usr/include/X11R5 -I/usr/include/X1 CXXFLAGS = -fPIC -O3 -I/usr/openwin/include -DSUNOS4 GLUT_CFLAGS = -fexceptions -DSOLARIS_2_4_BUG +# Work around aliasing bugs - developers should comment this out +CFLAGS += -fno-strict-aliasing +CXXFLAGS += -fno-strict-aliasing + APP_LIB_DEPS = -L$(TOP)/$(LIB_DIR) -L/usr/openwin/lib -lX11 -lXext -lXmu -lXi -lm -- cgit v1.2.3