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

2016-10-17 Thread Anuj Phogat
On Thu, Oct 13, 2016 at 3:09 PM, Chad Versace  wrote:
> 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
>
> ___
> Piglit mailing list
> Piglit@lists.freedesktop.org
> https://lists.freedesktop.org/mailman/listinfo/piglit

For the series:
Reviewed-by: Anuj Phogat 
___
Piglit mailing list
Piglit@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/piglit


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

2016-10-13 Thread Chad Versace
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

___
Piglit mailing list
Piglit@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/piglit