summaryrefslogtreecommitdiff
path: root/configs/solaris-x86-gcc-static
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/solaris-x86-gcc-static
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/solaris-x86-gcc-static')
-rw-r--r--configs/solaris-x86-gcc-static4
1 files changed, 4 insertions, 0 deletions
diff --git a/configs/solaris-x86-gcc-static b/configs/solaris-x86-gcc-static
index be02735f02..4850284a59 100644
--- a/configs/solaris-x86-gcc-static
+++ b/configs/solaris-x86-gcc-static
@@ -12,6 +12,10 @@ CXXFLAGS = -O3 -march=i486 -fPIC
GLUT_CFLAGS = -fexceptions
MKLIB_OPTIONS = -static
+# Work around aliasing bugs - developers should comment this out
+CFLAGS += -fno-strict-aliasing
+CXXFLAGS += -fno-strict-aliasing
+
GL_LIB_DEPS = -L/usr/openwin/lib -lX11 -lXext -lm -lpthread
GLU_LIB_DEPS = -L$(TOP)/$(LIB_DIR) -l$(GL_LIB) -lm
GLUT_LIB_DEPS = -L$(TOP)/$(LIB_DIR) -l$(GLU_LIB) -l$(GL_LIB) -L/usr/openwin/lib -lX11 -lXmu -lXt -lXi -lm