summaryrefslogtreecommitdiff
path: root/recipes/mesa/mesa-6.0.1/Make-config.patch
diff options
context:
space:
mode:
Diffstat (limited to 'recipes/mesa/mesa-6.0.1/Make-config.patch')
-rw-r--r--recipes/mesa/mesa-6.0.1/Make-config.patch26
1 files changed, 26 insertions, 0 deletions
diff --git a/recipes/mesa/mesa-6.0.1/Make-config.patch b/recipes/mesa/mesa-6.0.1/Make-config.patch
new file mode 100644
index 0000000000..cfe8890e3b
--- /dev/null
+++ b/recipes/mesa/mesa-6.0.1/Make-config.patch
@@ -0,0 +1,26 @@
+--- mesa/Make-config.orig 2004-06-25 13:09:44.000000000 +0100
++++ mesa/Make-config 2004-06-25 14:18:27.000000000 +0100
+@@ -643,16 +643,16 @@
+ "GLUT_LIB = libglut.so" \
+ "GLW_LIB = libGLw.so" \
+ "OSMESA_LIB = libOSMesa.so" \
+- "CC = gcc" \
+- "CXX = g++" \
+- "CFLAGS = -O3 -ansi -pedantic -fPIC -ffast-math -D_POSIX_SOURCE -D_POSIX_C_SOURCE=199309L -D_SVID_SOURCE -D_BSD_SOURCE -DUSE_XSHM -DPTHREADS -I/usr/X11R6/include" \
+- "CXXFLAGS = -O3 -ansi -pedantic -fPIC -ffast-math -D_POSIX_SOURCE -D_POSIX_C_SOURCE=199309L -D_SVID_SOURCE -D_BSD_SOURCE" \
++ "CC = $(CC)" \
++ "CXX = $(CXX)" \
++ "CFLAGS = -ansi -pedantic -fPIC -ffast-math -D_POSIX_SOURCE -D_POSIX_C_SOURCE=199309L -D_SVID_SOURCE -D_BSD_SOURCE -DUSE_XSHM -DPTHREADS $(CFLAGS)" \
++ "CXXFLAGS = -ansi -pedantic -fPIC -ffast-math -D_POSIX_SOURCE -D_POSIX_C_SOURCE=199309L -D_SVID_SOURCE -D_BSD_SOURCE $(CXXFLAGS)" \
+ "GLUT_CFLAGS = -fexceptions" \
+- "GL_LIB_DEPS = -L/usr/X11R6/lib -lX11 -lXext -lm -lpthread" \
++ "GL_LIB_DEPS = $(LDFLAGS) -lX11 -lXext -lm -lpthread" \
+ "OSMESA_LIB_DEPS = -L$(TOP)/lib -lGL" \
+ "GLU_LIB_DEPS = -L$(TOP)/lib -lGL -lm" \
+- "GLUT_LIB_DEPS = -L$(TOP)/lib -lGLU -lGL -L/usr/X11R6/lib -lX11 -lXmu -lXt -lXi -lm" \
+- "GLW_LIB_DEPS = -L$(TOP)/lib -lGL -L/usr/X11R6/lib -lXt -lX11" \
++ "GLUT_LIB_DEPS = $(LDFLAGS) -L$(TOP)/lib -lGLU -lGL -lX11 -lXmu -lXt -lXi -lm" \
++ "GLW_LIB_DEPS = $(LDFLAGS) -L$(TOP)/lib -lGL -lXt -lX11" \
+ "APP_LIB_DEPS = -lglut -lGLU -lGL -lm"
+
+ linux-static: