Fixes here the problem described in [1] with mesa 7.8 GIT branch.

- Sedat -

[1] http://marc.info/?l=mesa3d-dev&m=126909519809790&w=2
From 54276b697a93e7620290882e997cb0aed3ecb04c Mon Sep 17 00:00:00 2001
From: Sedat Dilek <sedat.di...@gmail.com>
Date: Sat, 20 Mar 2010 15:53:25 +0100
Subject: [PATCH] xdemos: Remove -L$(TOP)/$(LIB_DIR) from LIBS in Makefile

This is fixing the build breakage of xdemos introduced with:

commit 41a87a43e11c664935349f938022d58d3e22da4e
"glapi: Correctly generate static disatches for X86."

[build.log]
...
gcc -g -O2 -Wall -Wmissing-prototypes -std=c99 -ffast-math -fvisibility=hidden -fno-strict-aliasing -g  -fPIC  -DUSE_X86_ASM -DUSE_MMX_ASM -DUSE_3DNOW_ASM -DUSE_SSE_ASM -D_GNU_SOURCE -DPTHREADS -DDEBUG -DHAVE_POSIX_MEMALIGN -DGLX_USE_TLS -DPTHREADS -DUSE_EXTERNAL_DXTN_LIB=1 -DIN_DRI_DRIVER -DGLX_DIRECT_RENDERING -DGLX_INDIRECT_RENDERING -DHAVE_ALIAS  corender.o ipc.o -L../../lib -lGL -L/usr/lib  -lm -lX11 -lpthread -o corender
../../lib/libGL.so: undefined reference to `glBlitFramebufferEXT'
../../lib/libGL.so: undefined reference to `glDeleteVertexArraysAPPLE'
../../lib/libGL.so: undefined reference to `glIsVertexArrayAPPLE'
../../lib/libGL.so: undefined reference to `glBlendEquationSeparateEXT'
collect2: ld returned 1 exit status
make[2]: *** [corender] Error 1
...
[/build.log]
---
 progs/xdemos/Makefile |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/progs/xdemos/Makefile b/progs/xdemos/Makefile
index e87d55d..ad0c9c0 100644
--- a/progs/xdemos/Makefile
+++ b/progs/xdemos/Makefile
@@ -11,7 +11,7 @@ LIB_DEP = $(TOP)/$(LIB_DIR)/$(GL_LIB_NAME)
 # Add X11 and pthread libs to satisfy GNU gold.
 APP_LIB_DEPS += -lX11 -lpthread
 
-LIBS = -L$(TOP)/$(LIB_DIR) -l$(GL_LIB) -L$(libdir) $(APP_LIB_DEPS)
+LIBS = -l$(GL_LIB) -L$(libdir) $(APP_LIB_DEPS)
 
 PROGS = \
 	corender \
-- 
1.7.0.2

------------------------------------------------------------------------------
Download Intel&#174; Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
_______________________________________________
Mesa3d-dev mailing list
Mesa3d-dev@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mesa3d-dev

Reply via email to