summaryrefslogtreecommitdiff
path: root/configs/sunos4-gcc
diff options
context:
space:
mode:
authorDan Nicholson <dbn.lists@gmail.com>2007-11-01 06:01:53 -0700
committerDan Nicholson <dbn.lists@gmail.com>2007-11-01 06:03:31 -0700
commit01b18abf93c1999397563e75fe1bfbbe0e080ae9 (patch)
tree65e03b995e094bf8bbb4d0a5b5c2e405a4ae2d78 /configs/sunos4-gcc
parentee793281b221415f794af6aadaa9764023612e0b (diff)
Add -fno-strict-aliasing workaround for all GCC targets
Use a GCC option to work around aliasing bugs. See commit 013dbcd for more details.
Diffstat (limited to 'configs/sunos4-gcc')
-rw-r--r--configs/sunos4-gcc4
1 files changed, 4 insertions, 0 deletions
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