From 86821eb45d8bc74949b5c4cc2ba28ea694bc732d Mon Sep 17 00:00:00 2001 From: Con Kolivas Date: Fri, 5 Apr 2013 11:58:21 +1100 Subject: [PATCH] Fix mingw cross compilation being broken by win32/win64 patches. --- Makefile.am | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Makefile.am b/Makefile.am index 140bbc1f..48847c06 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