Commit 86821eb45d8bc74949b5c4cc2ba28ea694bc732d

Con Kolivas 2013-04-05T11:58:21

Fix mingw cross compilation being broken by win32/win64 patches.

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
diff --git a/Makefile.am b/Makefile.am
index 140bbc1..48847c0 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -27,7 +27,11 @@ cgminer_LDADD	= $(DLOPEN_FLAGS) @LIBCURL_LIBS@ @JANSSON_LIBS@ @PTHREAD_LIBS@ \
 		  @UDEV_LIBS@ @LIBUSB_LIBS@ \
 		  @MATH_LIBS@ lib/libgnu.a ccan/libccan.a
 
+if HAVE_WINDOWS
+cgminer_CPPFLAGS = -I$(top_builddir)/lib -I$(top_srcdir)/lib @OPENCL_FLAGS@ @LIBUSB_CFLAGS@
+else
 cgminer_CPPFLAGS = -I$(top_builddir)/lib -I$(top_srcdir)/lib @OPENCL_FLAGS@ @LIBUSB_CFLAGS@ @LIBCURL_CFLAGS@
+endif
 
 # common sources
 cgminer_SOURCES := cgminer.c