Use a GCC option to work around aliasing bugs. See commit 013dbcd for
more details.
tags/mesa_7_1_rc1
| @@ -11,6 +11,10 @@ CXX = g++ | |||
| CFLAGS = -O2 -DAIXV3 | |||
| CXXFLAGS = -O2 -DAIXV3 | |||
| # Work around aliasing bugs - developers should comment this out | |||
| CFLAGS += -fno-strict-aliasing | |||
| CXXFLAGS += -fno-strict-aliasing | |||
| MKLIB_OPTIONS = -arch aix-gcc | |||
| GL_LIB_DEPS = -lX11 -lXext -lm | |||
| GLU_LIB_DEPS = -L$(TOP)/$(LIB_DIR) -l$(GL_LIB) -lm | |||
| @@ -39,6 +39,10 @@ ifeq ($(CPU), x86) | |||
| CXXFLAGS = $(CFLAGS) | |||
| # Work around aliasing bugs - developers should comment this out | |||
| CFLAGS += -fno-strict-aliasing | |||
| CXXFLAGS += -fno-strict-aliasing | |||
| LDFLAGS += -Xlinker | |||
| ifdef DEBUG | |||
| @@ -13,6 +13,10 @@ CXX = /bgl/BlueLight/ppcfloor/blrts-gnu/bin/powerpc-bgl-blrts-gnu-g++ | |||
| CFLAGS = -O3 -ansi -pedantic -fPIC -ffast-math -D_POSIX_SOURCE -D_POSIX_C_SOURCE=199309L -D_SVID_SOURCE -D_BSD_SOURCE | |||
| CXXFLAGS = -O3 -ansi -pedantic -fPIC -ffast-math -D_POSIX_SOURCE -D_POSIX_C_SOURCE=199309L -D_SVID_SOURCE -D_BSD_SOURC | |||
| # Work around aliasing bugs - developers should comment this out | |||
| CFLAGS += -fno-strict-aliasing | |||
| CXXFLAGS += -fno-strict-aliasing | |||
| MKLIB_OPTIONS = -static | |||
| OSMESA_LIB_NAME = libOSMesa.a | |||
| @@ -10,6 +10,10 @@ CXX = cc | |||
| CFLAGS = -I/usr/X11R6/include -O3 -fPIC -fno-common -ffast-math -funroll-loops -fexpensive-optimizations -no-cpp-precomp -dynamic -Ddarwin | |||
| CXXFLAGS = -I/usr/X11R6/include -O3 -fPIC -fno-common -ffast-math -funroll-loops -fexpensive-optimizations -no-cpp-precomp -dynamic -Ddarwin | |||
| # Work around aliasing bugs - developers should comment this out | |||
| CFLAGS += -fno-strict-aliasing | |||
| CXXFLAGS += -fno-strict-aliasing | |||
| # Library names (actual file names) | |||
| GL_LIB_NAME = libGL.dylib | |||
| GLU_LIB_NAME = libGLU.dylib | |||
| @@ -9,6 +9,10 @@ CFLAGS = -I/usr/X11R6/include -O3 -fno-common -ffast-math -funroll-loops -fexpen | |||
| CXXFLAGS = -I/usr/X11R6/include -O3 -fno-common -ffast-math -funroll-loops -fexpensive-optimizations -no-cpp-precomp -dynamic -Ddarwin | |||
| MKLIB_OPTIONS = -static | |||
| # Work around aliasing bugs - developers should comment this out | |||
| CFLAGS += -fno-strict-aliasing | |||
| CXXFLAGS += -fno-strict-aliasing | |||
| # Library names (actual file names) | |||
| GL_LIB_NAME = libGL.a | |||
| GLU_LIB_NAME = libGLU.a | |||
| @@ -11,6 +11,10 @@ CXXFLAGS = -arch ppc -arch i386 -isysroot /Developer/SDKs/MacOSX10.4u.sdk \ | |||
| -I/usr/X11R6/include -O3 -fno-common -ffast-math -funroll-loops -fexpensive-optimizations -no-cpp-precomp -dynamic -Ddarwin | |||
| MKLIB_OPTIONS = -static -archopt "-isysroot /Developer/SDKs/MacOSX10.4u.sdk" | |||
| # Work around aliasing bugs - developers should comment this out | |||
| CFLAGS += -fno-strict-aliasing | |||
| CXXFLAGS += -fno-strict-aliasing | |||
| # Library names (actual file names) | |||
| GL_LIB_NAME = libGL.a | |||
| GLU_LIB_NAME = libGLU.a | |||
| @@ -14,6 +14,10 @@ CXXFLAGS = -arch ppc -arch i386 -isysroot /Developer/SDKs/MacOSX10.4u.sdk \ | |||
| MKLIB_OPTIONS = -archopt "-isysroot /Developer/SDKs/MacOSX10.4u.sdk" | |||
| # Work around aliasing bugs - developers should comment this out | |||
| CFLAGS += -fno-strict-aliasing | |||
| CXXFLAGS += -fno-strict-aliasing | |||
| # Library names (actual file names) | |||
| GL_LIB_NAME = libGL.dylib | |||
| GLU_LIB_NAME = libGLU.dylib | |||
| @@ -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 | |||
| @@ -22,6 +22,10 @@ CFLAGS = $(WARN_FLAGS) $(OPT_FLAGS) $(PIC_FLAGS) -Wmissing-prototypes -std=c99 - | |||
| CXXFLAGS = $(WARN_FLAGS) $(OPT_FLAGS) $(PIC_FLAGS) $(DEFINES) -Wall -ansi -pedantic $(ASM_FLAGS) $(X11_INCLUDES) | |||
| # Work around aliasing bugs - developers should comment this out | |||
| CFLAGS += -fno-strict-aliasing | |||
| CXXFLAGS += -fno-strict-aliasing | |||
| ASM_SOURCES = | |||
| # Library/program dependencies | |||
| @@ -12,5 +12,9 @@ CFLAGS = -ansi -O3 -D_HPUX_SOURCE -I/usr/include/X11R6 -I/usr/contrib/X11R6/incl | |||
| CXXFLAGS = -ansi -O3 -D_HPUX_SOURCE | |||
| GLUT_CFLAGS = -fexceptions | |||
| # Work around aliasing bugs - developers should comment this out | |||
| CFLAGS += -fno-strict-aliasing | |||
| CXXFLAGS += -fno-strict-aliasing | |||
| APP_LIB_DEPS = -L$(TOP)/$(LIB_DIR) -L/usr/lib/X11R6 -L/usr/contrib/X11R6/lib -lXext -lXmu -lXi -lX11 -lm | |||
| @@ -12,3 +12,6 @@ CXXFLAGS = -O2 -fPIC | |||
| GLUT_CFLAGS = -fexceptions | |||
| APP_LIB_DEPS = -L$(TOP)/$(LIB_DIR) -L/usr/X11R6/lib -lXext -lXmu -lXi -lX11 -lm | |||
| # Work around aliasing bugs - developers should comment this out | |||
| CFLAGS += -fno-strict-aliasing | |||
| CXXFLAGS += -fno-strict-aliasing | |||
| @@ -10,6 +10,10 @@ CXX = g++ | |||
| CFLAGS = -O2 -fPIC -I/usr/X11R6/include -DUSE_XSHM -DHZ=100 | |||
| CXXFLAGS = -O2 -fPIC -I/usr/X11R6/include -DHZ=100 | |||
| # 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 | |||
| OSMESA_LIB_DEPS = -lm | |||
| GLU_LIB_DEPS = -L$(TOP)/$(LIB_DIR) -l$(GL_LIB) | |||
| @@ -11,6 +11,10 @@ CFLAGS = -O3 -march=i486 -fPIC -I/usr/openwin/include -DUSE_XSHM | |||
| CXXFLAGS = -O3 -march=i486 -fPIC | |||
| 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/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 | |||
| @@ -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 | |||
| @@ -11,5 +11,9 @@ CFLAGS = -fPIC -O3 -I/usr/openwin/include -I/usr/include/X11R5 -I/usr/include/X1 | |||
| CXXFLAGS = -fPIC -O3 -I/usr/openwin/include -DSUNOS4 | |||
| GLUT_CFLAGS = -fexceptions -DSOLARIS_2_4_BUG | |||
| # Work around aliasing bugs - developers should comment this out | |||
| CFLAGS += -fno-strict-aliasing | |||
| CXXFLAGS += -fno-strict-aliasing | |||
| APP_LIB_DEPS = -L$(TOP)/$(LIB_DIR) -L/usr/openwin/lib -lX11 -lXext -lXmu -lXi -lm | |||
| @@ -28,6 +28,10 @@ CXXFLAGS = $(WARN_FLAGS) $(OPT_FLAGS) $(PIC_FLAGS) $(ARCH_FLAGS) $(DEFINES) \ | |||
| GLUT_CFLAGS = -fexceptions -DSOLARIS_2_4_BUG | |||
| # Work around aliasing bugs - developers should comment this out | |||
| CFLAGS += -fno-strict-aliasing | |||
| CXXFLAGS += -fno-strict-aliasing | |||
| # Library/program dependencies | |||
| EXTRA_LIB_PATH=-L/usr/openwin/lib | |||
| @@ -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 | |||
| @@ -12,6 +12,10 @@ CXXFLAGS = -pedantic -O2 | |||
| 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_NAME = libGL.a | |||
| GLU_LIB_NAME = libGLU.a | |||
| GLUT_LIB_NAME = libglut.a | |||