summaryrefslogtreecommitdiff
path: root/configs/sunos5-v9-cc-g++
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/sunos5-v9-cc-g++
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/sunos5-v9-cc-g++')
-rw-r--r--configs/sunos5-v9-cc-g++3
1 files changed, 3 insertions, 0 deletions
diff --git a/configs/sunos5-v9-cc-g++ b/configs/sunos5-v9-cc-g++
index 37b775cc08..8656251e3b 100644
--- a/configs/sunos5-v9-cc-g++
+++ b/configs/sunos5-v9-cc-g++
@@ -21,6 +21,9 @@ CXX_ARCH_FLAGS = -m64
CXXFLAGS = $(CXX_WARN_FLAGS) $(CXX_OPT_FLAGS) $(CXX_PIC_FLAGS) $(CXX_ARCH_FLAGS) $(DEFINES) \
-I/usr/openwin/include
+# Work around aliasing bugs - developers should comment this out
+CXXFLAGS += -fno-strict-aliasing
+
CFLAGS = -xarch=v9 -KPIC -O -I/usr/openwin/include -I/usr/dt/include -DUSE_XSHM -DPTHREADS
#CXXFLAGS = -xarch=v9 -KPIC -O -I/usr/openwin/include -I/usr/dt/include -DPTHREADS
GLUT_CFLAGS = -DSOLARIS_2_4_BUG