소스 검색

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