Mesa (master): llvmpipe: Fix link order for test apps

Jakob Bornecrantz wallbraker at kemper.freedesktop.org
Mon May 17 22:17:06 UTC 2010


Module: Mesa
Branch: master
Commit: b3f625f5e49d4f713caf401daf32e7f8843bad24
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=b3f625f5e49d4f713caf401daf32e7f8843bad24

Author: Jakob Bornecrantz <jakob at vmware.com>
Date:   Mon May 17 22:15:53 2010 +0100

llvmpipe: Fix link order for test apps

When linking with --as-needed libgallium.a can't find the dl* symbols from
-ldl since order matters more with --as-needed.

Thanks to Nirbheek Chauhan and Adam Jackson

---

 src/gallium/drivers/llvmpipe/Makefile |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/src/gallium/drivers/llvmpipe/Makefile b/src/gallium/drivers/llvmpipe/Makefile
index 4ea3675..526e85c 100644
--- a/src/gallium/drivers/llvmpipe/Makefile
+++ b/src/gallium/drivers/llvmpipe/Makefile
@@ -59,7 +59,7 @@ lp_tile_soa.c: lp_tile_soa.py ../../auxiliary/util/u_format_parse.py ../../auxil
 	python lp_tile_soa.py ../../auxiliary/util/u_format.csv > $@
 
 LDFLAGS += $(LLVM_LDFLAGS)
-LIBS += $(GL_LIB_DEPS) -L../../auxiliary/ -lgallium libllvmpipe.a $(LLVM_LIBS)
+LIBS += -L../../auxiliary/ -lgallium libllvmpipe.a $(LLVM_LIBS) $(GL_LIB_DEPS)
 LD=g++
 
 $(PROGS): lp_test_main.o libllvmpipe.a




More information about the mesa-commit mailing list