diff options
author | Dan Nicholson <dbn.lists@gmail.com> | 2007-10-31 09:47:39 -0700 |
---|---|---|
committer | Dan Nicholson <dbn.lists@gmail.com> | 2007-10-31 09:47:39 -0700 |
commit | 013dbcd6111bc880e65ed00a7ca31e19230a81d5 (patch) | |
tree | 9f8df16e43a9c39963dcd14a50dbfda92eb0a92e /configs/linux-glide | |
parent | 2bdd467dfd3cfe9a479a8e8395620ecc414e18dc (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.
Diffstat (limited to 'configs/linux-glide')
-rw-r--r-- | configs/linux-glide | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/configs/linux-glide b/configs/linux-glide index 0a40521e1b..31475c81d8 100644 --- a/configs/linux-glide +++ b/configs/linux-glide @@ -12,6 +12,9 @@ CFLAGS = -O3 -ansi -pedantic -fPIC -ffast-math -D_POSIX_SOURCE -D_POSIX_C_SOURCE CXXFLAGS = -O3 -ansi -pedantic -fPIC -ffast-math -D_POSIX_SOURCE -D_POSIX_C_SOURCE=199309L -D_SVID_SOURCE -D_BSD_SOURCE GLUT_CFLAGS = -fexceptions +# Work around aliasing bugs - developers should comment this out +CFLAGS += -fno-strict-aliasing +CXXFLAGS += -fno-strict-aliasing # Library/program dependencies GL_LIB_DEPS = -L/usr/X11R6/lib -lX11 -lXext -L/usr/local/glide/lib -lglide3x -lm -lpthread |