Hi,
with the attached patch and the new config file I built mesa 7.0.1
successfully using the IBM xlc compiler for the IBM BlueGene supercomputer.
It would be nice if you could apply this to git.
Bye
Alex
P.S. please CC me at neundorf AT kde DOT org .
diff -rbup Mesa-7.0.1-bgl-xlc/Makefile x/Mesa-7.0.1/Makefile
--- Mesa-7.0.1-bgl-xlc/Makefile 2007-08-17 11:51:27.228767805 -0400
+++ x/Mesa-7.0.1/Makefile 2007-08-03 15:31:28.000000000 -0400
@@ -70,7 +70,6 @@ aix-gcc \
aix-static \
beos \
bluegene-osmesa \
-bluegene-xlc-osmesa \
darwin \
darwin-static \
darwin-static-x86ppc \
diff -rbup Mesa-7.0.1-bgl-xlc/src/mesa/main/glheader.h x/Mesa-7.0.1/src/mesa/main/glheader.h
--- Mesa-7.0.1-bgl-xlc/src/mesa/main/glheader.h 2007-08-17 11:52:13.138204953 -0400
+++ x/Mesa-7.0.1/src/mesa/main/glheader.h 2007-08-01 17:50:01.000000000 -0400
@@ -236,7 +236,8 @@
# define ASSERT(X)
#endif
-#if (!defined __GNUC__ || __GNUC__ < 3) && !defined __IBMC__
+
+#if !defined __GNUC__ || __GNUC__ < 3
# define __builtin_expect(x, y) x
#endif
# Configuration for building only libOSMesa on BlueGene using the IBM xlc
compiler
# This doesn't really have a lot of dependencies, so it should be usable
# on similar systems too.
# It uses static linking and disables multithreading.
include $(TOP)/configs/default
CONFIG_NAME = bluegene-osmesa
# Compiler and flags
CC = /opt/ibmcmp/vacpp/bg/8.0/bin/blrts_xlc
CXX = /opt/ibmcmp/vacpp/bg/8.0/bin/blrts_xlC
CFLAGS = -O3 -pedantic -D_POSIX_SOURCE -D_POSIX_C_SOURCE=199309L -D_SVID_SOURCE
-D_BSD_SOURCE
CXXFLAGS = -O3 -pedantic -D_POSIX_SOURCE -D_POSIX_C_SOURCE=199309L
-D_SVID_SOURCE -D_BSD_SOURC
MKLIB_OPTIONS = -static
OSMESA_LIB_NAME = libOSMesa.a
# Directories
SRC_DIRS = mesa glu
DRIVER_DIRS = osmesa
PROGRAM_DIRS = osdemos
# Dependencies
OSMESA_LIB_DEPS = -lm
GLU_LIB_DEPS = -L$(TOP)/$(LIB_DIR) -l$(OSMESA_LIB)
APP_LIB_DEPS = -lOSMesa -lGLU -lm
-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Mesa3d-dev mailing list
Mesa3d-dev@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mesa3d-dev