Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save fcojperez/60661553d2641a48976dd0f5bbb1b984 to your computer and use it in GitHub Desktop.
Save fcojperez/60661553d2641a48976dd0f5bbb1b984 to your computer and use it in GitHub Desktop.
Patch for building cgminer v2.3.2 in Ubuntu 18
From 90d94e10cbf64cdf5af435c67af4fe5131c17811 Mon Sep 17 00:00:00 2001
From: Francisco Perez <fcojperez@gmail.com>
Date: Wed, 24 Feb 2021 23:17:58 +0100
Subject: [PATCH] Updating Makefile.am files in root folder and ccan for
building in Ubuntu 18
---
Makefile.am | 2 +-
ccan/Makefile.am | 1 +
2 files changed, 2 insertions(+), 1 deletion(-)
diff --git a/Makefile.am b/Makefile.am
index 02ee6f06..ca4c70e0 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -13,7 +13,7 @@ EXTRA_DIST = example.conf m4/gnulib-cache.m4 linux-usb-cgminer \
SUBDIRS = lib compat ccan
-INCLUDES = $(PTHREAD_FLAGS) -fno-strict-aliasing $(JANSSON_INCLUDES)
+AM_CPPFLAGS = $(PTHREAD_FLAGS) -fno-strict-aliasing $(JANSSON_INCLUDES)
bin_PROGRAMS = cgminer
diff --git a/ccan/Makefile.am b/ccan/Makefile.am
index 1514f6f1..2e1218b7 100644
--- a/ccan/Makefile.am
+++ b/ccan/Makefile.am
@@ -1,3 +1,4 @@
+AUTOMAKE_OPTIONS = subdir-objects
noinst_LIBRARIES = libccan.a
libccan_a_SOURCES = compiler/compiler.h opt/helpers.c opt/opt.c opt/opt.h opt/parse.c opt/private.h opt/usage.c typesafe_cb/typesafe_cb.h
--
2.17.1

Introduction

This patch is for building cgminer v.2.3.2 the latest one with the option --enable-cpumining and during the build process in Ubuntu 18 I have experienced some issues seemsly due to some compatibility issues with automake. So as after fixing those issues I have exported this patch for possible comming buildings

How to apply this patch

How to build and install

cd $home_project_folder/cgminer
./autogen.sh
./configure --enable-cpumining && make
### Installing
./install-sh ./cgminer /usr/local/bin/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment