Преглед на файлове

configure.ac: when searching for curand library, add cuda ldflags in search path

Nathalie Furmento преди 14 години
родител
ревизия
0e4686c334
променени са 1 файла, в които са добавени 3 реда и са изтрити 0 реда
  1. 3 0
      configure.ac

+ 3 - 0
configure.ac

@@ -459,7 +459,10 @@ fi
 # The CURAND library is only available since CUDA 3.2
 have_curand=$enable_cuda
 if test x$enable_cuda = xyes; then
+        SAVED_LDFLAGS="${LDFLAGS}"
+        LDFLAGS="${LDFLAGS} ${STARPU_CUDA_LDFLAGS}"
 	AC_HAVE_LIBRARY([curand],[have_curand=yes],[have_curand=no])
+        LDFLAGS="${SAVED_LDFLAGS}"
 fi
 AC_MSG_CHECKING(whether CURAND is available)
 AC_MSG_RESULT($have_curand)