[Beignet] [PATCH] CMake: Add -lrt to the link command of libcl.so
Yang, Rong R
rong.r.yang at intel.com
Mon Nov 16 19:31:22 PST 2015
LGTM, pushed, thanks.
> -----Original Message-----
> From: Beignet [mailto:beignet-bounces at lists.freedesktop.org] On Behalf Of
> junyan.he at inbox.com
> Sent: Thursday, November 12, 2015 14:08
> To: beignet at lists.freedesktop.org
> Subject: [Beignet] [PATCH] CMake: Add -lrt to the link command of libcl.so
>
> From: Junyan He <junyan.he at linux.intel.com>
>
> The clock_gettime will cause the linkage error on some version of GCC, we
> need to add -lrt at the end of the link command line.
>
> Signed-off-by: Junyan He <junyan.he at linux.intel.com>
> ---
> src/CMakeLists.txt | 1 +
> 1 file changed, 1 insertion(+)
>
> diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index c917e76..4c5112c
> 100644
> --- a/src/CMakeLists.txt
> +++ b/src/CMakeLists.txt
> @@ -144,6 +144,7 @@ add_library(cl SHARED ${OPENCL_SRC})
> ADD_DEPENDENCIES(cl ${GIT_SHA1}) target_link_libraries(
> cl
> + rt
> ${X11_LIBRARIES}
> ${XEXT_LIBRARIES}
> ${XFIXES_LIBRARIES}
> --
> 1.7.9.5
>
>
>
> _______________________________________________
> Beignet mailing list
> Beignet at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/beignet
More information about the Beignet
mailing list