From f4e2669a6e1b6b438329de8e94806ace81ce7800 Mon Sep 17 00:00:00 2001 From: Thomas White Date: Fri, 15 Aug 2014 14:18:53 +0200 Subject: Add opencl library dir, if given, to linker path --- configure.ac | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/configure.ac b/configure.ac index 6f91bf68..44b2e687 100644 --- a/configure.ac +++ b/configure.ac @@ -53,7 +53,7 @@ AS_IF([test "x$with_opencl" == "xyes"], [ AC_MSG_RESULT([${with_opencl_dir}/include/CL/cl.h]) OPENCL_CFLAGS="-I${with_opencl_dir}/include" - OPENCL_LIBS="-lOpenCL" + OPENCL_LIBS="-lOpenCL -L${with_opencl_dir}/lib64 -L${with_opencl_dir}/lib" cl_cl_h=true have_opencl=true ], [ @@ -61,7 +61,7 @@ AS_IF([test "x$with_opencl" == "xyes"], [ AC_MSG_RESULT([${with_opencl_dir}/include/cl.h]) OPENCL_CFLAGS="-I${with_opencl_dir}/include/cl.h/include" - OPENCL_LIBS="-lOpenCL" + OPENCL_LIBS="-lOpenCL -L${with_opencl_dir}/lib64 -L${with_opencl_dir}/lib" cl_cl_h=false have_opencl=true ], [ -- cgit v1.2.3