diff options
author | Thomas White <taw@physics.org> | 2014-08-15 14:18:53 +0200 |
---|---|---|
committer | Thomas White <taw@physics.org> | 2014-08-15 14:18:53 +0200 |
commit | f4e2669a6e1b6b438329de8e94806ace81ce7800 (patch) | |
tree | 85fbe6fd48cadc5e12f5cc5ec6e86907e2ff90de | |
parent | aa442d971b02f3ca2c8ae0dae416cf65ff2fdd65 (diff) |
Add opencl library dir, if given, to linker path
-rw-r--r-- | configure.ac | 4 |
1 files 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 ], [ |