Commit 9d84e915600c1dcbd1da9b0c05b22927544e7a8f

Con Kolivas 2011-09-11T13:32:19

Properly substitute DLOPEN flags to build with ADL support when -ldl is needed and not when opencl is not found.

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
diff --git a/configure.ac b/configure.ac
index f5f1cf0..2c3f43b 100644
--- a/configure.ac
+++ b/configure.ac
@@ -136,6 +136,8 @@ if test "$found_opencl" = 1; then
 			DLOPEN_FLAGS=""
 		fi
 	fi
+else
+	DLOPEN_FLAGS=""
 fi
 
 AC_SEARCH_LIBS(addstr, ncurses pdcurses, ,
@@ -238,6 +240,7 @@ AC_DEFINE_UNQUOTED([CGMINER_PREFIX], ["$prefix/bin"], [Path to cgminer install])
 AC_SUBST(OPENCL_LIBS)
 AC_SUBST(JANSSON_LIBS)
 AC_SUBST(PTHREAD_FLAGS)
+AC_SUBST(DLOPEN_FLAGS)
 AC_SUBST(PTHREAD_LIBS)
 AC_SUBST(NCURSES_LIBS)
 AC_SUBST(PDCURSES_LIBS)