[Piglit] [PATCH] tests/util: Link with rt only if librt exists.
Vinson Lee
vlee at freedesktop.org
Tue Jan 7 11:03:22 PST 2014
This patch fixes the OpenBSD build.
Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=73332
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()
--
1.8.1.2
More information about the Piglit
mailing list