about summary refs log tree commit diff
path: root/pkgs/tools/misc/ethminer/add-global-context.patch
blob: f0891e5a27588867913f2857e25e7c8e9015e1e1 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
diff --git a/libethcore/CMakeLists.txt b/libethcore/CMakeLists.txt
index 1a53de8..832e926 100644
--- a/libethcore/CMakeLists.txt
+++ b/libethcore/CMakeLists.txt
@@ -7,7 +7,7 @@ set(SOURCES
 include_directories(BEFORE ..)
 
 add_library(ethcore ${SOURCES})
-target_link_libraries(ethcore PUBLIC devcore ethash::ethash PRIVATE hwmon)
+target_link_libraries(ethcore PUBLIC devcore ethash::ethash ethash-global-context PRIVATE hwmon)
 
 if(ETHASHCL)
 	target_link_libraries(ethcore PRIVATE ethash-cl)
diff --git a/libethcore/EthashAux.h b/libethcore/EthashAux.h
index d9aadc7..fe5c6cf 100644
--- a/libethcore/EthashAux.h
+++ b/libethcore/EthashAux.h
@@ -22,6 +22,7 @@
 #include <libdevcore/Worker.h>
 
 #include <ethash/ethash.hpp>
+#include <ethash/global_context.hpp>
 
 namespace dev
 {