Skip to content

Commit 94dc96b

Browse files
committed
update build instructions w.r.t libsecp256k1
1 parent a02cfcc commit 94dc96b

1 file changed

Lines changed: 11 additions & 1 deletion

File tree

docs/content/getting-started/building.md

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,12 +74,22 @@ git clone https://github.com/bitcoin-core/secp256k1.git
7474
cd secp256k1
7575
git reset --hard ac83be33d0956faf6b7f61a60ab524ef7d6a473a
7676
./autogen.sh
77-
./configure --prefix=/usr --enable-module-schnorrsig --enable-experimental
77+
./configure --prefix=/usr/local/lib --libdir=/usr/local/lib --enable-module-schnorrsig --enable-experimental
7878
make
7979
make check
8080
sudo make install
8181
```
8282

83+
{{% notice tip %}}
84+
85+
On MacOS, if the `cabal build` command fails to find `libsecp256k1` in `/usr/local/lib` but instead look for it in `/usr/lib`, you can try the following:
86+
87+
```console
88+
install_name_tool -id /usr/local/lib/libsecp256k1.0.dylib /usr/local/lib/libsecp256k1.0.dylib
89+
```
90+
91+
{{% /notice %}}
92+
8393
#### `blst`
8494

8595
A fancy crypto library for BLS12-381, a.k.a BLST:

0 commit comments

Comments
 (0)