[Piglit] [PATCH] tests/util: Link with rt only if librt exists.

Brian Paul brianp at vmware.com
Tue Jan 7 13:42:32 PST 2014


On 01/07/2014 12:03 PM, Vinson Lee wrote:
> This patch fixes the OpenBSD build.
>
> Bugzilla: https://urldefense.proofpoint.com/v1/url?u=https://bugs.freedesktop.org/show_bug.cgi?id%3D73332&k=oIvRg1%2BdGAgOoM1BIlLLqw%3D%3D%0A&r=lGQMzzTgII0I7jefp2FHq7WtZ%2BTLs8wadB%2BiIj9xpBY%3D%0A&m=KMRRpzcufAqpyuAnMs9eVCBr2o5RXgP9OngInAaPkTc%3D%0A&s=987a6c24f6f6060615b59d4607a7a25a2faf7e3bb03da2196a4c18c9cf1c1d79
> Signed-off-by: Vinson Lee <vlee at freedesktop.org>
> ---
>   tests/util/CMakeLists.txt | 2 +-
>   1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/tests/util/CMakeLists.txt b/tests/util/CMakeLists.txt
> index df2ea70..6745a2f 100644
> --- a/tests/util/CMakeLists.txt
> +++ b/tests/util/CMakeLists.txt
> @@ -1,6 +1,6 @@
>   add_definitions(-DSOURCE_DIR="${piglit_SOURCE_DIR}/")
>
> -if(PIGLIT_HAS_POSIX_CLOCK_MONOTONIC)
> +if(PIGLIT_HAS_POSIX_CLOCK_MONOTONIC AND HAVE_LIBRT)
>       link_libraries(rt)
>   endif()
>
>

Reviewed-by: Brian Paul <brianp at vmware.com>



More information about the Piglit mailing list