[Piglit] [PATCH] hiz: Add piglitutil to linker

Pauli Nieminen pauli.nieminen at linux.intel.com
Tue Jun 5 02:40:31 PDT 2012


libhiz-util uses symbols from libpiglitutil but wasn't linked to it.
That worked in linux because linker --no-undefined wasn't passed to
linker. But tests in Mac caught the missing library dependecy.

I now checked with ldd -r that no libraries or binaries have undefined
symbols in my system..

Signed-off-by: Pauli Nieminen <pauli.nieminen at linux.intel.com>
CC: Vinson Lee <vlee at freedesktop.org>
Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=50708
---
 tests/hiz/CMakeLists.gl.txt |    5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/tests/hiz/CMakeLists.gl.txt b/tests/hiz/CMakeLists.gl.txt
index 28d8f85..cea23ca 100644
--- a/tests/hiz/CMakeLists.gl.txt
+++ b/tests/hiz/CMakeLists.gl.txt
@@ -5,13 +5,16 @@ include_directories(
 	${OPENGL_INCLUDE_PATH}
 	)
 
+link_libraries (
+	piglitutil
+)
+
 piglit_add_library(hiz-util
 	hiz-util.c
 	)
 
 link_libraries (
 	hiz-util
-	piglitutil
 
 	${OPENGL_gl_LIBRARY}
 	${OPENGL_glu_LIBRARY}
-- 
1.7.9.5



More information about the Piglit mailing list