[Piglit] [PATCH 1/4] util: Link to gbm if gbm is used

Chad Versace chadversary at chromium.org
Thu Oct 13 22:09:14 UTC 2016


If PIGLIT_HAS_GBM, then add GBM_LDFLAGS to the linker flags. Fixes
undefined symbol errors at link time for me, using Arch Linux.
---
 tests/util/CMakeLists.txt | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/tests/util/CMakeLists.txt b/tests/util/CMakeLists.txt
index 3d5bef5..277386e 100644
--- a/tests/util/CMakeLists.txt
+++ b/tests/util/CMakeLists.txt
@@ -81,6 +81,9 @@ if(PIGLIT_USE_WAFFLE)
 		list(APPEND UTIL_GL_SOURCES
 			piglit-framework-gl/piglit_gbm_framework.c
 		)
+		list(APPEND UTIL_GL_LIBS
+			${GBM_LDFLAGS}
+		)
 	endif()
 	if(PIGLIT_HAS_WAYLAND)
 		list(APPEND UTIL_GL_SOURCES
-- 
2.10.0



More information about the Piglit mailing list