diff --git a/Makefile.am b/Makefile.am index f8d3d7ef0..346cbdf58 100644 --- a/Makefile.am +++ b/Makefile.am @@ -16,8 +16,8 @@ bin_PROGRAMS = minerd dist_man_MANS = minerd.1 minerd_SOURCES = elist.h \ - miner.h \ - compat.h \ + miner.h \ + compat.h \ cpu-miner.c \ util.c \ sha2.c \ @@ -62,4 +62,8 @@ endif minerd_LDFLAGS = $(PTHREAD_FLAGS) minerd_LDADD = @LIBCURL@ @JANSSON_LIBS@ @PTHREAD_LIBS@ @WS2_LIBS@ -lcrypto minerd_CPPFLAGS = @LIBCURL_CPPFLAGS@ +minerd_CFLAGS = +if HAVE_WINDOWS +minerd_CFLAGS += -Wl,--stack,10485760 +endif \ No newline at end of file diff --git a/cpu-miner.c b/cpu-miner.c index 09b203aef..4f0f7d2ad 100644 --- a/cpu-miner.c +++ b/cpu-miner.c @@ -559,7 +559,7 @@ static void share_result(int result, struct work *work, const char *reason) { applog(LOG_INFO, "accepted: %lu/%lu (%.2f%%), %.2f H/s at diff %g %s", accepted_count, accepted_count + rejected_count, 100. * accepted_count / (accepted_count + rejected_count), hashrate, - result ? (((double) 0xffffffff) / (work ? work->target[7] : rpc2_target)) : 0, + (((double) 0xffffffff) / (work ? work->target[7] : rpc2_target)), result ? "(yay!!!)" : "(booooo)"); break; default: