Skip to content

Commit

Permalink
Update BuildPkcs11Lib.md - Add Alpinelinux guide
Browse files Browse the repository at this point in the history
  • Loading branch information
harrison314 authored Oct 30, 2024
1 parent bc5e390 commit 9ed82b4
Showing 1 changed file with 26 additions and 0 deletions.
26 changes: 26 additions & 0 deletions Doc/BuildPkcs11Lib.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,3 +27,29 @@ make
```

The compiled library is named `BouncyHsm.Pkcs11Lib-x64.so`.

## Example compilation for Alpine Linux
Install prerequisites:

```
apk add build-base
apk add git
```

Clone repository:
```
git clone https://github.com/harrison314/BouncyHsm.git
```

Edit Makefile:
Edit `BouncyHsm/build_linux/Makefile` and change `CC=clang` to `CC=gcc`.

Build:
```
cd BouncyHsm
# git checkout <last tag>
cd build_linux
make
```

The compiled library is named `BouncyHsm.Pkcs11Lib-x64.so`.

0 comments on commit 9ed82b4

Please sign in to comment.