Преглед изворни кода

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)