CudaMiner
CudaMiner copied to clipboard
Add -ccbin flag to Makefile.am - the only way to build it
Hello, Thanks for the very nice program! I run Archlinux fully updated and i am not sure if it's a cuda 5 thing or something else, but i can only build CudaMiner once i add the following flag to the actual compilation lines at Makefile.am: -ccbin=/usr/bin/g++ Here is the diff: diff --git a/Makefile.am b/Makefile.am
index 6265742..0dcdce3 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -32,10 +32,10 @@ cudaminer_LDADD = @LIBCURL@ @JANSSON_LIBS@ @PTHREAD_LIBS@ @WS2_LIBS@ @CUDA_LIBS
cudaminer_CPPFLAGS = -msse2 @LIBCURL_CPPFLAGS@ @OPENMP_CFLAGS@
.cu.o:
- $(NVCC) @CFLAGS@ -arch=compute_10 --maxrregcount=124 --ptxas-options=-v $(JANSSON_INCLUDES) -o $@ -c $<
+ $(NVCC) @CFLAGS@ -ccbin=/usr/bin/g++ -arch=compute_10 --maxrregcount=124 --ptxas-options=-v $(JANSSON_INCLUDES) -o $@ -c $<
spinlock_kernel.o: spinlock_kernel.cu
- $(NVCC) @CFLAGS@ -arch=compute_11 --maxrregcount=124 --ptxas-options=-v $(JANSSON_INCLUDES) -o $@ -c $<
+ $(NVCC) @CFLAGS@ -ccbin=/usr/bin/g++ -arch=compute_11 --maxrregcount=124 --ptxas-options=-v $(JANSSON_INCLUDES) -o $@ -c $<
titan_kernel.o: titan_kernel.cu
- $(NVCC) @CFLAGS@ -arch=compute_35 --maxrregcount=64 --ptxas-options=-v $(JANSSON_INCLUDES) -o $@ -c $<
+ $(NVCC) @CFLAGS@ -ccbin=/usr/bin/g++ -arch=compute_35 --maxrregcount=64 --ptxas-options=-v $(JANSSON_INCLUDES) -o $@ -c $<