浏览代码

keep -lcudart when checking for libcublas. This is needed for linking when that library path is not in LD_LIBRARY_PATH

Samuel Thibault 13 年之前
父节点
当前提交
89f3df6586
共有 1 个文件被更改,包括 0 次插入1 次删除
  1. 0 1
      configure.ac

+ 0 - 1
configure.ac

@@ -319,7 +319,6 @@ AC_DEFUN([STARPU_CHECK_CUDA_RUNTIME],
             if test "$3" = "no" -a "$__cuda_dir" != "no" ; then
             if test "$3" = "no" -a "$__cuda_dir" != "no" ; then
                 __cuda_lib_dir="$__cuda_dir/lib64"
                 __cuda_lib_dir="$__cuda_dir/lib64"
 	        STARPU_CUDA_LDFLAGS="${SAVED_STARPU_CUDA_LDFLAGS} -L$__cuda_lib_dir"
 	        STARPU_CUDA_LDFLAGS="${SAVED_STARPU_CUDA_LDFLAGS} -L$__cuda_lib_dir"
-	        LDFLAGS="${SAVED_LDFLAGS} -L$__cuda_lib_dir"
 	        AC_HAVE_LIBRARY([cudart],[have_valid_cuda=yes],[have_valid_cuda=no])
 	        AC_HAVE_LIBRARY([cudart],[have_valid_cuda=yes],[have_valid_cuda=no])
                 unset ac_cv_lib_cudart_main
                 unset ac_cv_lib_cudart_main
             fi
             fi