diff options
author | Chad Versace <chadversary@chromium.org> | 2016-10-13 13:18:01 -0700 |
---|---|---|
committer | Chad Versace <chadversary@chromium.org> | 2016-10-18 11:15:26 -0700 |
commit | f30f65e0c8b14b884ffdc6cd7e5c34a430d10f26 (patch) | |
tree | 7b03bc7ce50b89b200fe75d324b3a950e4a8466c | |
parent | 865e93a289a346e2f154bb73f1f100afbf0d4fb2 (diff) |
util: Link to gbm if gbm is used
If PIGLIT_HAS_GBM, then add GBM_LDFLAGS to the linker flags. Fixes
undefined symbol errors at link time for me, using Arch Linux.
Reviewed-by: Anuj Phogat <anuj.phogat@gmail.com>
-rw-r--r-- | tests/util/CMakeLists.txt | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/tests/util/CMakeLists.txt b/tests/util/CMakeLists.txt index 3d5bef5ce..277386e15 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 |