Commit efaa1b035b642339e278a8f9ac537be3158b87f9

Con Kolivas 2012-11-18T17:19:53

Work around libcurl cflags not working on hacked up mingw installations on windows.

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
diff --git a/Makefile.am b/Makefile.am
index 2c3230e..85dd170 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -26,7 +26,12 @@ cgminer_LDADD	= $(DLOPEN_FLAGS) @LIBCURL_LIBS@ @JANSSON_LIBS@ @PTHREAD_LIBS@ \
 		  @OPENCL_LIBS@ @NCURSES_LIBS@ @PDCURSES_LIBS@ @WS2_LIBS@ \
 		  @UDEV_LIBS@ @USB_LIBS@ \
 		  @MATH_LIBS@ lib/libgnu.a ccan/libccan.a
+
+if HAVE_WINDOWS
+cgminer_CPPFLAGS = -I$(top_builddir)/lib -I$(top_srcdir)/lib @OPENCL_FLAGS@
+else
 cgminer_CPPFLAGS = -I$(top_builddir)/lib -I$(top_srcdir)/lib @OPENCL_FLAGS@ @LIBCURL_CFLAGS@
+endif
 
 # common sources
 cgminer_SOURCES := cgminer.c