diff options
author | Dan Nicholson <dbn.lists@gmail.com> | 2007-11-01 06:01:53 -0700 |
---|---|---|
committer | Dan Nicholson <dbn.lists@gmail.com> | 2007-11-01 06:03:31 -0700 |
commit | 01b18abf93c1999397563e75fe1bfbbe0e080ae9 (patch) | |
tree | 65e03b995e094bf8bbb4d0a5b5c2e405a4ae2d78 /configs/freebsd | |
parent | ee793281b221415f794af6aadaa9764023612e0b (diff) | |
download | external_mesa3d-01b18abf93c1999397563e75fe1bfbbe0e080ae9.zip external_mesa3d-01b18abf93c1999397563e75fe1bfbbe0e080ae9.tar.gz external_mesa3d-01b18abf93c1999397563e75fe1bfbbe0e080ae9.tar.bz2 |
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/freebsd')
-rw-r--r-- | configs/freebsd | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/configs/freebsd b/configs/freebsd index 34440eb..976ddd1 100644 --- a/configs/freebsd +++ b/configs/freebsd @@ -23,5 +23,9 @@ CXXFLAGS += $(WARN_FLAGS) $(OPT_FLAGS) $(PIC_FLAGS) $(DEFINES) $(X11_INCLUDES) GLUT_CFLAGS = -fexceptions +# Work around aliasing bugs - developers should comment this out +CFLAGS += -fno-strict-aliasing +CXXFLAGS += -fno-strict-aliasing + EXTRA_LIB_PATH = -L/usr/local/lib APP_LIB_DEPS = -L$(TOP)/$(LIB_DIR) $(EXTRA_LIB_PATH) -l$(GLUT_LIB) -l$(GLU_LIB) -l$(GL_LIB) -lXext -lXmu -lXi -lX11 -lm |