Skip to content

Commit dd3399e

Browse files
authored
Merge pull request bitcoinfuzz#92 from luisfg30/adjust-makefiles
Listing dependencies on readme file
2 parents 9d984bf + 0d19722 commit dd3399e

File tree

5 files changed

+43
-0
lines changed

5 files changed

+43
-0
lines changed

Makefile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
all: bitcoinfuzz
22

3+
CXX := clang++
34
CXXFLAGS += -fsanitize=address,fuzzer -Wall -Wextra -std=c++20 -I include -I .
45
MODULES := $(wildcard modules/*/module.a)
56

README.md

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,45 @@ Note this project is a WIP and might be not stable.
55

66
# Installation
77

8+
## Dependencies
9+
10+
### llvm toolset (clang and libfuzzer)
11+
12+
* To support the flags used in some modules `-fsanitize=address,fuzzer -std=c++20` the minimum clang version required is 10.0
13+
14+
* For macOS the llvm tools are installed by default, just check that you have the minimum required version 10.0
15+
16+
* If not installed or lesser than 10.0 just run:
17+
18+
```
19+
brew install llvm
20+
```
21+
22+
23+
* For ubuntu/debian it can be installed using the package manager:
24+
```
25+
sudo apt install clang lld llvm-dev
26+
```
27+
28+
* To install it from source check [clang_get_started](https://clang.llvm.org/get_started.html). You must build it with this cmake option: `-DLLVM_ENABLE_PROJECTS="clang;lld;compiler-rt"`
29+
30+
31+
### boost
32+
33+
To build the bitcoin core module the boost library is required. Minimum version
34+
35+
The module uses only libboost-filesystem and libboost-system modules. For ubuntu you can install with:
36+
37+
```
38+
sudo apt install libboost-filesystem-dev libboost-system-dev
39+
```
40+
41+
Or install the complete boost library with
42+
```
43+
sudo apt install libboost-all-dev
44+
```
45+
46+
847
## Bitcoin modules:
948
1049
### rust-bitcoin

modules/bitcoin/Makefile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
all: module.a
22

3+
CXX := clang++
34
CXXFLAGS += -Wall -Wextra -std=c++20 \
45
-fsanitize=fuzzer,address \
56
-I . \

modules/rustbitcoin/Makefile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
all: module.a
22

3+
CXX := clang++
34
CXXFLAGS += -Wall -Wextra -fsanitize=address,fuzzer -std=c++20 -I ../../include
45
# MacOS: ./rust_bitcoin_lib/target/aarch64-apple-darwin/release/librust_bitcoin_lib.a
56
RUST_LIB_PATH := ./rust_bitcoin_lib/target/release/librust_bitcoin_lib.a

modules/rustminiscript/Makefile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
all: module.a
22

3+
CXX := clang++
34
CXXFLAGS += -Wall -Wextra -fsanitize=address,fuzzer -std=c++20 -I ../../include
45
# MacOS: ./rust_miniscript_lib/target/aarch64-apple-darwin/release/librust_bitcoin_lib.a
56
RUST_MINISCRIPT_LIB_PATH := ./rust_miniscript_lib/target/release/librust_miniscript_lib.a

0 commit comments

Comments
 (0)