llvmpipe: Fix link order for test apps
authorJakob Bornecrantz <jakob@vmware.com>
Mon, 17 May 2010 21:15:53 +0000 (22:15 +0100)
committerJakob Bornecrantz <jakob@vmware.com>
Mon, 17 May 2010 21:33:35 +0000 (22:33 +0100)
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

index 4ea367597e18eb740dd856e50097511b4850a09e..526e85c82e11ffa0c39183527d7ee4c6d5183180 100644 (file)
@@ -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