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

configure.ac: restore LDFLAGS when no valid opencl setup is found

Nathalie Furmento пре 14 година
родитељ
комит
27db8fc1fc
1 измењених фајлова са 1 додато и 0 уклоњено
  1. 1 0
      configure.ac

+ 1 - 0
configure.ac

@@ -463,6 +463,7 @@ if test x$enable_opencl = xyes -o x$enable_opencl = xmaybe; then
 	# in case OpenCL was explicitely required, but is not available, this is an error
 	if test x$enable_opencl = xyes -a x$have_valid_opencl = no; then
 		AC_MSG_ERROR([cannot find OpenCL])
+                LDFLAGS="${SAVED_LDFLAGS}"
 	fi
 
 	# now we enable OpenCL if and only if a proper setup is available