aboutsummaryrefslogtreecommitdiffstats
path: root/configs/linux-alpha
diff options
context:
space:
mode:
authorDan Nicholson <[email protected]>2007-10-31 09:47:39 -0700
committerDan Nicholson <[email protected]>2007-11-01 10:56:01 -0700
commit00e7dd8a1387155f73030b2ab28902ecf031e6e0 (patch)
tree2e025b3c9b9fe844e92f67841f09b57aff5719d4 /configs/linux-alpha
parentd11b375b16d2d16cf324777aa854ea3222ac89a2 (diff)
Add -fno-strict-aliasing workaround for Linux GCC targets
Most Linux distros work around aliasing problems in Mesa by compiling with the GCC option -fno-strict-aliasing. Two examples: https://bugs.freedesktop.org/show_bug.cgi?id=6046 http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=394311 This makes -fno-strict-aliasing the default with a comment that developers should consider commenting it out. There is a already a note about these bugs in docs/helpwanted.html. (cherry picked from commit 013dbcd6111bc880e65ed00a7ca31e19230a81d5)
Diffstat (limited to 'configs/linux-alpha')
-rw-r--r--configs/linux-alpha4
1 files changed, 4 insertions, 0 deletions
diff --git a/configs/linux-alpha b/configs/linux-alpha
index d69aabb7307..65bf0c2ab6a 100644
--- a/configs/linux-alpha
+++ b/configs/linux-alpha
@@ -11,6 +11,10 @@ CFLAGS = -O3 -mcpu=ev5 -ansi -mieee -pedantic -fPIC -D_XOPEN_SOURCE -DUSE_XSHM
CXXFLAGS = -O3 -mcpu=ev5 -ansi -mieee -pedantic -fPIC -D_XOPEN_SOURCE
GLUT_CFLAGS = -fexceptions
+# Work around aliasing bugs - developers should comment this out
+CFLAGS += -fno-strict-aliasing
+CXXFLAGS += -fno-strict-aliasing
+
GL_LIB_DEPS = -L/usr/X11R6/lib -lX11 -lXext -lm -lpthread
GLUT_LIB_DEPS = -L$(TOP)/$(LIB_DIR) -l$(GLU_LIB) -l$(GL_LIB) -L/usr/X11R6/lib -lX11 -lXmu -lXt -lXi -lm
GLW_LIB_DEPS = -L$(TOP)/$(LIB_DIR) -l$(GL_LIB) -L/usr/X11R6/lib -lXt -lX11